#342F72#342F72

#342F72 is a dark, moderate blue. Relative luminance 0.040; OKLCH L 35.0% C 0.112 H 282.3°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#342F72
RGBrgb(52, 47, 114)
HSLhsl(244, 42%, 32%)
HSVhsv(244, 59%, 45%)
CMYKcmyk(54.4%, 58.8%, 0%, 55.3%)
CIE-LABlab(23.60, 22.35, -38.13)
CIE-LCHlch(23.60, 44.20, 300.38°)
OKLaboklab(35.05% 0.0239 -0.1091)
OKLCHoklch(35.05% 0.112 282.3)
XYZxyz(5.4690, 3.9777, 16.3959)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#342F72 #6D722F
analogous
#2F4C72 #342F72 #562F72
triadic
#342F72 #72342F #2F7234
tetradic
#342F72 #722F4C #6D722F #2F7256
square
#342F72 #722F4C #6D722F #2F7256
split-complementary
#342F72 #72562F #4C722F
monochromatic
#0C0B1B #201D47 #342F72 #48419D #665FBD

Accessibility & contrast

On white

11.70
#342F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#342F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #342F72
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##342F72#FFFFFF#000000##FFFFFF
##342F721.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023A74
Deuteranopia (green-blind)
#003671
Tritanopia (blue-blind)
#1B3E4B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #342f72;
/* rgb */ color: rgb(52, 47, 114);
/* oklch */ color: oklch(35.0% 0.112 282.3);
Tailwind
colors: {
  custom: {
    50: '#71679b',
    500: '#342f72',
    950: '#000000',
  },
}
SCSS
$custom: #342f72;
$custom-light: #71679b;
$custom-dark: #000000;
JSON
{
  "hex": "#342f72",
  "rgb": {
    "r": 52,
    "g": 47,
    "b": 114
  },
  "hsl": {
    "h": 244.478,
    "s": 41.615,
    "l": 31.569
  },
  "oklch": {
    "l": 0.35045,
    "c": 0.11164,
    "h": 282.3
  },
  "luminance": 0.03978
}

Semantic roles & 50–950 ramp

primary
#342F72
secondary
#9EA35A
accent
#D156C8
background
#F7F6F9
surface
#EDEBF2
border
#C8C6CC
text
#08060E
muted
#7B7A7E

Preview Lab

Preview with #342F72

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

Preview Lab → · Contrast checker → · Palette generator →

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