#34287D#34287D

#34287D is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.7% C 0.137 H 283.0°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#34287D
RGBrgb(52, 40, 125)
HSLhsl(248, 52%, 32%)
HSVhsv(248, 68%, 49%)
CMYKcmyk(58.4%, 68%, 0%, 51%)
CIE-LABlab(22.75, 30.67, -46.51)
CIE-LCHlch(22.75, 55.71, 303.40°)
OKLaboklab(34.71% 0.0309 -0.1337)
OKLCHoklch(34.71% 0.137 283)
XYZxyz(5.8755, 3.7280, 19.8080)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34287D #717D28
analogous
#28467D #34287D #5F287D
triadic
#34287D #7D3428 #287D34
tetradic
#34287D #7D2846 #717D28 #287D5F
square
#34287D #7D2846 #717D28 #287D5F
split-complementary
#34287D #7D5F28 #467D28
monochromatic
#0D0A20 #21194F #34287D #4737AB #6756C9

Accessibility & contrast

On white

12.03
#34287D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#34287D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34287D
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34287D#FFFFFF#000000##FFFFFF
##34287D1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#00337B
Tritanopia (blue-blind)
#0F3D4E
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #34287d;
/* rgb */ color: rgb(52, 40, 125);
/* oklch */ color: oklch(34.7% 0.137 283.0);
Tailwind
colors: {
  custom: {
    50: '#7463a3',
    500: '#34287d',
    950: '#000000',
  },
}
SCSS
$custom: #34287d;
$custom-light: #7463a3;
$custom-dark: #000000;
JSON
{
  "hex": "#34287d",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 125
  },
  "hsl": {
    "h": 248.471,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34707,
    "c": 0.13725,
    "h": 283
  },
  "luminance": 0.03728
}

Semantic roles & 50–950 ramp

primary
#34287D
secondary
#A1AE53
accent
#DB4DC7
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #34287D

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

Preview Lab → · Contrast checker → · Palette generator →

#34287D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva