#342F91#342F91

#342F91 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.7% C 0.156 H 278.2°. Best body text is #FFFFFF at 10.71:1 contrast (WCAG AA passes).

Color values

HEX#342F91
RGBrgb(52, 47, 145)
HSLhsl(243, 51%, 38%)
HSVhsv(243, 68%, 57%)
CMYKcmyk(64.1%, 67.6%, 0%, 43.1%)
CIE-LABlab(26.18, 33.06, -53.41)
CIE-LCHlch(26.18, 62.82, 301.75°)
OKLaboklab(37.74% 0.0221 -0.154)
OKLCHoklch(37.74% 0.156 278.2)
XYZxyz(7.5419, 4.8068, 27.3129)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F91 #8C912F
analogous
#2F5B91 #342F91 #652F91
triadic
#342F91 #91342F #2F9134
tetradic
#342F91 #912F5B #8C912F #2F9165
square
#342F91 #912F5B #8C912F #2F9165
split-complementary
#342F91 #91652F #5B912F
monochromatic
#131135 #232063 #342F91 #453EBF #706BCF

Accessibility & contrast

On white

10.71
#342F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#342F91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F91
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F91#FFFFFF#000000##FFFFFF
##342F911.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004294
Deuteranopia (green-blind)
#003A8F
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #342f91;
/* rgb */ color: rgb(52, 47, 145);
/* oklch */ color: oklch(37.7% 0.156 278.2);
Tailwind
colors: {
  custom: {
    50: '#7768b2',
    500: '#342f91',
    950: '#000000',
  },
}
SCSS
$custom: #342f91;
$custom-light: #7768b2;
$custom-dark: #000000;
JSON
{
  "hex": "#342f91",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 145
  },
  "hsl": {
    "h": 243.061,
    "s": 51.042,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37743,
    "c": 0.15554,
    "h": 278.2
  },
  "luminance": 0.04807
}

Semantic roles & 50–950 ramp

primary
#342F91
secondary
#B2B665
accent
#DB4DD3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342F91

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

Preview Lab → · Contrast checker → · Palette generator →

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