#342A72#342A72

#342A72 is a dark, moderate blue. Relative luminance 0.036; OKLCH L 34.1% C 0.119 H 284.5°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#342A72
RGBrgb(52, 42, 114)
HSLhsl(248, 46%, 31%)
HSVhsv(248, 63%, 45%)
CMYKcmyk(54.4%, 63.2%, 0%, 55.3%)
CIE-LABlab(22.30, 25.68, -40.23)
CIE-LCHlch(22.30, 47.72, 302.56°)
OKLaboklab(34.09% 0.0297 -0.1152)
OKLCHoklch(34.09% 0.119 284.5)
XYZxyz(5.2805, 3.6006, 16.3331)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342A72 #68722A
analogous
#2A4472 #342A72 #582A72
triadic
#342A72 #72342A #2A7234
tetradic
#342A72 #722A44 #68722A #2A7258
square
#342A72 #722A44 #68722A #2A7258
split-complementary
#342A72 #72582A #44722A
monochromatic
#0B0919 #201A45 #342A72 #483A9F #6556C1

Accessibility & contrast

On white

12.21
#342A72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#342A72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342A72
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342A72#FFFFFF#000000##FFFFFF
##342A721.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#003371
Tritanopia (blue-blind)
#1B3B49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #342a72;
/* rgb */ color: rgb(52, 42, 114);
/* oklch */ color: oklch(34.1% 0.119 284.5);
Tailwind
colors: {
  custom: {
    50: '#72649b',
    500: '#342a72',
    950: '#000000',
  },
}
SCSS
$custom: #342a72;
$custom-light: #72649b;
$custom-dark: #000000;
JSON
{
  "hex": "#342a72",
  "rgb": {
    "r": 52,
    "g": 42,
    "b": 114
  },
  "hsl": {
    "h": 248.333,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34091,
    "c": 0.11903,
    "h": 284.5
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

primary
#342A72
secondary
#99A454
accent
#D652C4
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08050E
muted
#7B7A7E

Preview Lab

Preview with #342A72

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

Preview Lab → · Contrast checker → · Palette generator →

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