#34408B#34408B

#34408B is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.5% C 0.125 H 272.7°. Best body text is #FFFFFF at 9.32:1 contrast (WCAG AA passes).

Color values

HEX#34408B
RGBrgb(52, 64, 139)
HSLhsl(232, 46%, 37%)
HSVhsv(232, 63%, 55%)
CMYKcmyk(62.6%, 54%, 0%, 45.5%)
CIE-LABlab(30.06, 19.75, -43.40)
CIE-LCHlch(30.06, 47.68, 294.47°)
OKLaboklab(40.46% 0.006 -0.1244)
OKLCHoklch(40.46% 0.125 272.7)
XYZxyz(7.9082, 6.2603, 25.2127)
Luminance0.0626 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34408B #8B7F34
analogous
#346C8B #34408B #53348B
triadic
#34408B #8B3440 #408B34
tetradic
#34408B #8B346C #8B7F34 #348B53
square
#34408B #8B346C #8B7F34 #348B53
split-complementary
#34408B #8B5334 #6C8B34
monochromatic
#131732 #232B5E #34408B #4555B8 #707CC9

Accessibility & contrast

On white

9.32
#34408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#34408B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34408B
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34408B#FFFFFF#000000##FFFFFF
##34408B1.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134B8E
Deuteranopia (green-blind)
#004389
Tritanopia (blue-blind)
#00515F
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #34408b;
/* rgb */ color: rgb(52, 64, 139);
/* oklch */ color: oklch(40.5% 0.125 272.7);
Tailwind
colors: {
  custom: {
    50: '#7574ad',
    500: '#34408b',
    950: '#000000',
  },
}
SCSS
$custom: #34408b;
$custom-light: #7574ad;
$custom-dark: #000000;
JSON
{
  "hex": "#34408b",
  "rgb": {
    "r": 52,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 231.724,
    "s": 45.55,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40463,
    "c": 0.12454,
    "h": 272.7
  },
  "luminance": 0.06261
}

Semantic roles & 50–950 ramp

primary
#34408B
secondary
#B2A869
accent
#C353D5
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#090810
muted
#7B7B7F

Preview Lab

Preview with #34408B

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

Preview Lab → · Contrast checker → · Palette generator →

#34408B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva