#342FB9#342FB9

#342FB9 is a dark, highly saturated blue. Relative luminance 0.063; OKLCH L 41.7% C 0.206 H 274.3°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#342FB9
RGBrgb(52, 47, 185)
HSLhsl(242, 59%, 45%)
HSVhsv(242, 75%, 73%)
CMYKcmyk(71.9%, 74.6%, 0%, 27.5%)
CIE-LABlab(30.07, 46.45, -71.19)
CIE-LCHlch(30.07, 85.00, 303.12°)
OKLaboklab(41.71% 0.0156 -0.2059)
OKLCHoklch(41.71% 0.206 274.3)
XYZxyz(11.1867, 6.2648, 46.5092)
Luminance0.0627 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342FB9 #B4B92F
analogous
#2F6FB9 #342FB9 #792FB9
triadic
#342FB9 #B9342F #2FB934
tetradic
#342FB9 #B92F6F #B4B92F #2FB979
square
#342FB9 #B92F6F #B4B92F #2FB979
split-complementary
#342FB9 #B9792F #6FB92F
monochromatic
#191657 #262388 #342FB9 #5752D3 #8683DF

Accessibility & contrast

On white

9.32
#342FB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#342FB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342FB9
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342FB9#FFFFFF#000000##FFFFFF
##342FB91.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DBD
Deuteranopia (green-blind)
#0040B7
Tritanopia (blue-blind)
#005772
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #342fb9;
/* rgb */ color: rgb(52, 47, 185);
/* oklch */ color: oklch(41.7% 0.206 274.3);
Tailwind
colors: {
  custom: {
    50: '#806acf',
    500: '#342fb9',
    950: '#000000',
  },
}
SCSS
$custom: #342fb9;
$custom-light: #806acf;
$custom-dark: #000000;
JSON
{
  "hex": "#342fb9",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 185
  },
  "hsl": {
    "h": 242.174,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.41709,
    "c": 0.20649,
    "h": 274.3
  },
  "luminance": 0.06266
}

Semantic roles & 50–950 ramp

primary
#342FB9
secondary
#C6C97B
accent
#E345DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #342FB9

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

Preview Lab → · Contrast checker → · Palette generator →

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