#342E8D#342E8D

#342E8D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.2% C 0.151 H 278.9°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#342E8D
RGBrgb(52, 46, 141)
HSLhsl(244, 51%, 37%)
HSVhsv(244, 67%, 55%)
CMYKcmyk(63.1%, 67.4%, 0%, 44.7%)
CIE-LABlab(25.58, 32.32, -51.91)
CIE-LCHlch(25.58, 61.15, 301.90°)
OKLaboklab(37.2% 0.0234 -0.1496)
OKLCHoklch(37.2% 0.151 278.9)
XYZxyz(7.1994, 4.6066, 25.7039)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342E8D #878D2E
analogous
#2E588D #342E8D #642E8D
triadic
#342E8D #8D342E #2E8D34
tetradic
#342E8D #8D2E58 #878D2E #2E8D64
square
#342E8D #8D2E58 #878D2E #2E8D64
split-complementary
#342E8D #8D642E #588D2E
monochromatic
#121031 #231F5F #342E8D #453DBB #6E68CE

Accessibility & contrast

On white

10.93
#342E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#342E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342E8D
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342E8D#FFFFFF#000000##FFFFFF
##342E8D1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004090
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #342e8d;
/* rgb */ color: rgb(52, 46, 141);
/* oklch */ color: oklch(37.2% 0.151 278.9);
Tailwind
colors: {
  custom: {
    50: '#7667af',
    500: '#342e8d',
    950: '#000000',
  },
}
SCSS
$custom: #342e8d;
$custom-light: #7667af;
$custom-dark: #000000;
JSON
{
  "hex": "#342e8d",
  "rgb": {
    "r": 52,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 243.789,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37201,
    "c": 0.15138,
    "h": 278.9
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

primary
#342E8D
secondary
#AFB562
accent
#DA4ED1
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #342E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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