#342A93#342A93

#342A93 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.1% C 0.164 H 279.0°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#342A93
RGBrgb(52, 42, 147)
HSLhsl(246, 56%, 37%)
HSVhsv(246, 71%, 58%)
CMYKcmyk(64.6%, 71.4%, 0%, 42.4%)
CIE-LABlab(25.24, 36.80, -56.19)
CIE-LCHlch(25.24, 67.17, 303.22°)
OKLaboklab(37.12% 0.0258 -0.1621)
OKLCHoklch(37.12% 0.164 279)
XYZxyz(7.5089, 4.4920, 28.0694)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A93 #89932A
analogous
#2A5593 #342A93 #692A93
triadic
#342A93 #93342A #2A9334
tetradic
#342A93 #932A55 #89932A #2A9369
square
#342A93 #932A55 #89932A #2A9369
split-complementary
#342A93 #93692A #55932A
monochromatic
#120F34 #231C63 #342A93 #4538C3 #6F65D3

Accessibility & contrast

On white

11.06
#342A93 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#342A93 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A93
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A93#FFFFFF#000000##FFFFFF
##342A931.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004096
Deuteranopia (green-blind)
#003891
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #342a93;
/* rgb */ color: rgb(52, 42, 147);
/* oklch */ color: oklch(37.1% 0.164 279.0);
Tailwind
colors: {
  custom: {
    50: '#7865b4',
    500: '#342a93',
    950: '#000000',
  },
}
SCSS
$custom: #342a93;
$custom-light: #7865b4;
$custom-dark: #000000;
JSON
{
  "hex": "#342a93",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 147
  },
  "hsl": {
    "h": 245.714,
    "s": 55.556,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37121,
    "c": 0.16414,
    "h": 279
  },
  "luminance": 0.04493
}

Semantic roles & 50–950 ramp

primary
#342A93
secondary
#B0B960
accent
#DF49D1
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #342A93

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#342A93 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva