#342E92#342E92

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

Color values

HEX#342E92
RGBrgb(52, 46, 146)
HSLhsl(244, 52%, 38%)
HSVhsv(244, 68%, 57%)
CMYKcmyk(64.4%, 68.5%, 0%, 42.7%)
CIE-LABlab(26.04, 34.03, -54.26)
CIE-LCHlch(26.04, 64.05, 302.09°)
OKLaboklab(37.67% 0.0228 -0.1565)
OKLCHoklch(37.67% 0.158 278.3)
XYZxyz(7.5798, 4.7588, 27.7077)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E92 #8C922E
analogous
#2E5A92 #342E92 #662E92
triadic
#342E92 #92342E #2E9234
tetradic
#342E92 #922E5A #8C922E #2E9266
square
#342E92 #922E5A #8C922E #2E9266
split-complementary
#342E92 #92662E #5A922E
monochromatic
#131135 #231F63 #342E92 #453DC1 #706AD0

Accessibility & contrast

On white

10.76
#342E92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #342E92
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E92#FFFFFF#000000##FFFFFF
##342E921.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #342e92;
/* rgb */ color: rgb(52, 46, 146);
/* oklch */ color: oklch(37.7% 0.158 278.3);
Tailwind
colors: {
  custom: {
    50: '#7767b3',
    500: '#342e92',
    950: '#000000',
  },
}
SCSS
$custom: #342e92;
$custom-light: #7767b3;
$custom-dark: #000000;
JSON
{
  "hex": "#342e92",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 146
  },
  "hsl": {
    "h": 243.6,
    "s": 52.083,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37669,
    "c": 0.15811,
    "h": 278.3
  },
  "luminance": 0.04759
}

Semantic roles & 50–950 ramp

primary
#342E92
secondary
#B2B765
accent
#DC4CD3
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80

Preview Lab

Preview with #342E92

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

Preview Lab → · Contrast checker → · Palette generator →

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