#342E91#342E91

#342E91 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.6% C 0.157 H 278.4°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#342E91
RGBrgb(52, 46, 145)
HSLhsl(244, 52%, 37%)
HSVhsv(244, 68%, 57%)
CMYKcmyk(64.1%, 68.3%, 0%, 43.1%)
CIE-LABlab(25.94, 33.69, -53.80)
CIE-LCHlch(25.94, 63.47, 302.05°)
OKLaboklab(37.57% 0.0229 -0.1551)
OKLCHoklch(37.57% 0.157 278.4)
XYZxyz(7.5024, 4.7278, 27.2998)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E91 #8B912E
analogous
#2E5A91 #342E91 #652E91
triadic
#342E91 #91342E #2E9134
tetradic
#342E91 #912E5A #8B912E #2E9165
square
#342E91 #912E5A #8B912E #2E9165
split-complementary
#342E91 #91652E #5A912E
monochromatic
#131134 #231F63 #342E91 #453DBF #706AD0

Accessibility & contrast

On white

10.79
#342E91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#342E91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E91
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E91#FFFFFF#000000##FFFFFF
##342E911.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004194
Deuteranopia (green-blind)
#00398F
Tritanopia (blue-blind)
#00485B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342e91;
/* rgb */ color: rgb(52, 46, 145);
/* oklch */ color: oklch(37.6% 0.157 278.4);
Tailwind
colors: {
  custom: {
    50: '#7767b2',
    500: '#342e91',
    950: '#000000',
  },
}
SCSS
$custom: #342e91;
$custom-light: #7767b2;
$custom-dark: #000000;
JSON
{
  "hex": "#342e91",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 145
  },
  "hsl": {
    "h": 243.636,
    "s": 51.832,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37575,
    "c": 0.15677,
    "h": 278.4
  },
  "luminance": 0.04728
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #342E91

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

Preview Lab → · Contrast checker → · Palette generator →

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