#342B72#342B72

#342B72 is a dark, moderate blue. Relative luminance 0.037; OKLCH L 34.3% C 0.118 H 284.1°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#342B72
RGBrgb(52, 43, 114)
HSLhsl(248, 45%, 31%)
HSVhsv(248, 62%, 45%)
CMYKcmyk(54.4%, 62.3%, 0%, 55.3%)
CIE-LABlab(22.56, 25.02, -39.81)
CIE-LCHlch(22.56, 47.02, 302.15°)
OKLaboklab(34.28% 0.0286 -0.114)
OKLCHoklch(34.28% 0.118 284.1)
XYZxyz(5.3164, 3.6724, 16.3450)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342B72 #69722B
analogous
#2B4572 #342B72 #572B72
triadic
#342B72 #72342B #2B7234
tetradic
#342B72 #722B45 #69722B #2B7257
square
#342B72 #722B45 #69722B #2B7257
split-complementary
#342B72 #72572B #45722B
monochromatic
#0B0919 #201A46 #342B72 #483C9E #6558C0

Accessibility & contrast

On white

12.11
#342B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#342B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342B72
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342B72#FFFFFF#000000##FFFFFF
##342B721.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003471
Tritanopia (blue-blind)
#1B3C4A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #342b72;
/* rgb */ color: rgb(52, 43, 114);
/* oklch */ color: oklch(34.3% 0.118 284.1);
Tailwind
colors: {
  custom: {
    50: '#71649b',
    500: '#342b72',
    950: '#000000',
  },
}
SCSS
$custom: #342b72;
$custom-light: #71649b;
$custom-dark: #000000;
JSON
{
  "hex": "#342b72",
  "rgb": {
    "r": 52,
    "g": 43,
    "b": 114
  },
  "hsl": {
    "h": 247.606,
    "s": 45.223,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34276,
    "c": 0.11756,
    "h": 284.1
  },
  "luminance": 0.03673
}

Semantic roles & 50–950 ramp

primary
#342B72
secondary
#9AA455
accent
#D553C4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342B72

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

Preview Lab → · Contrast checker → · Palette generator →

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