#342D7E#342D7E

#342D7E is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.132 H 281.3°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#342D7E
RGBrgb(52, 45, 126)
HSLhsl(245, 47%, 34%)
HSVhsv(245, 64%, 49%)
CMYKcmyk(58.7%, 64.3%, 0%, 50.6%)
CIE-LABlab(24.04, 27.81, -45.04)
CIE-LCHlch(24.04, 52.93, 301.69°)
OKLaboklab(35.67% 0.0258 -0.1294)
OKLCHoklch(35.67% 0.132 281.3)
XYZxyz(6.1193, 4.1128, 20.2060)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342D7E #777E2D
analogous
#2D4E7E #342D7E #5C2D7E
triadic
#342D7E #7E342D #2D7E34
tetradic
#342D7E #7E2D4E #777E2D #2D7E5C
square
#342D7E #7E2D4E #777E2D #2D7E5C
split-complementary
#342D7E #7E5C2D #4E7E2D
monochromatic
#0F0D24 #211D51 #342D7E #473DAB #685FC6

Accessibility & contrast

On white

11.52
#342D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#342D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342D7E
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342D7E#FFFFFF#000000##FFFFFF
##342D7E1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C81
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#0C4151
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342d7e;
/* rgb */ color: rgb(52, 45, 126);
/* oklch */ color: oklch(35.7% 0.132 281.3);
Tailwind
colors: {
  custom: {
    50: '#7366a4',
    500: '#342d7e',
    950: '#000000',
  },
}
SCSS
$custom: #342d7e;
$custom-light: #7366a4;
$custom-dark: #000000;
JSON
{
  "hex": "#342d7e",
  "rgb": {
    "r": 52,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 245.185,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35673,
    "c": 0.13194,
    "h": 281.3
  },
  "luminance": 0.04113
}

Semantic roles & 50–950 ramp

primary
#342D7E
secondary
#A5AC5A
accent
#D751CB
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #342D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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