#342F76#342F76

#342F76 is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.4% C 0.118 H 281.7°. Best body text is #FFFFFF at 11.58:1 contrast (WCAG AA passes).

Color values

HEX#342F76
RGBrgb(52, 47, 118)
HSLhsl(244, 43%, 32%)
HSVhsv(244, 60%, 46%)
CMYKcmyk(55.9%, 60.2%, 0%, 53.7%)
CIE-LABlab(23.90, 23.73, -40.19)
CIE-LCHlch(23.90, 46.67, 300.56°)
OKLaboklab(35.37% 0.0239 -0.1151)
OKLCHoklch(35.37% 0.118 281.7)
XYZxyz(5.7017, 4.0708, 17.6213)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F76 #71762F
analogous
#2F4E76 #342F76 #572F76
triadic
#342F76 #76342F #2F7634
tetradic
#342F76 #762F4E #71762F #2F7657
square
#342F76 #762F4E #71762F #2F7657
split-complementary
#342F76 #76572F #4E762F
monochromatic
#0D0C1E #211E4A #342F76 #4740A2 #6760C0

Accessibility & contrast

On white

11.58
#342F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#342F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F76
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F76#FFFFFF#000000##FFFFFF
##342F761.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B78
Deuteranopia (green-blind)
#003675
Tritanopia (blue-blind)
#17404D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #342f76;
/* rgb */ color: rgb(52, 47, 118);
/* oklch */ color: oklch(35.4% 0.118 281.7);
Tailwind
colors: {
  custom: {
    50: '#72679e',
    500: '#342f76',
    950: '#000000',
  },
}
SCSS
$custom: #342f76;
$custom-light: #72679e;
$custom-dark: #000000;
JSON
{
  "hex": "#342f76",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 244.225,
    "s": 43.03,
    "l": 32.353
  },
  "oklch": {
    "l": 0.35369,
    "c": 0.11757,
    "h": 281.7
  },
  "luminance": 0.04071
}

Semantic roles & 50–950 ramp

primary
#342F76
secondary
#A1A75A
accent
#D355CA
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #342F76

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

Preview Lab → · Contrast checker → · Palette generator →

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