#342E8E#342E8E

#342E8E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.153 H 278.8°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#342E8E
RGBrgb(52, 46, 142)
HSLhsl(244, 51%, 37%)
HSVhsv(244, 68%, 56%)
CMYKcmyk(63.4%, 67.6%, 0%, 44.3%)
CIE-LABlab(25.67, 32.66, -52.38)
CIE-LCHlch(25.67, 61.73, 301.94°)
OKLaboklab(37.29% 0.0233 -0.1509)
OKLCHoklch(37.29% 0.153 278.8)
XYZxyz(7.2741, 4.6365, 26.0976)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E8E #888E2E
analogous
#2E588E #342E8E #642E8E
triadic
#342E8E #8E342E #2E8E34
tetradic
#342E8E #8E2E58 #888E2E #2E8E64
square
#342E8E #8E2E58 #888E2E #2E8E64
split-complementary
#342E8E #8E642E #588E2E
monochromatic
#121032 #231F60 #342E8E #453DBC #6F68CE

Accessibility & contrast

On white

10.90
#342E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#342E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E8E
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E8E#FFFFFF#000000##FFFFFF
##342E8E1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342e8e;
/* rgb */ color: rgb(52, 46, 142);
/* oklch */ color: oklch(37.3% 0.153 278.8);
Tailwind
colors: {
  custom: {
    50: '#7667b0',
    500: '#342e8e',
    950: '#000000',
  },
}
SCSS
$custom: #342e8e;
$custom-light: #7667b0;
$custom-dark: #000000;
JSON
{
  "hex": "#342e8e",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 243.75,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37294,
    "c": 0.15273,
    "h": 278.8
  },
  "luminance": 0.04637
}

Semantic roles & 50–950 ramp

primary
#342E8E
secondary
#B0B563
accent
#DB4DD2
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #342E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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