#34287E#34287E

#34287E is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.8% C 0.139 H 282.8°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#34287E
RGBrgb(52, 40, 126)
HSLhsl(248, 52%, 33%)
HSVhsv(248, 68%, 49%)
CMYKcmyk(58.7%, 68.3%, 0%, 50.6%)
CIE-LABlab(22.84, 31.01, -47.00)
CIE-LCHlch(22.84, 56.31, 303.41°)
OKLaboklab(34.8% 0.0308 -0.1352)
OKLCHoklch(34.8% 0.139 282.8)
XYZxyz(5.9397, 3.7536, 20.1462)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34287E #727E28
analogous
#28477E #34287E #5F287E
triadic
#34287E #7E3428 #287E34
tetradic
#34287E #7E2847 #727E28 #287E5F
square
#34287E #7E2847 #727E28 #287E5F
split-complementary
#34287E #7E5F28 #477E28
monochromatic
#0E0B21 #211950 #34287E #4737AC #6757CA

Accessibility & contrast

On white

11.99
#34287E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34287E
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34287E#FFFFFF#000000##FFFFFF
##34287E1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#0D3E4F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #34287e;
/* rgb */ color: rgb(52, 40, 126);
/* oklch */ color: oklch(34.8% 0.139 282.8);
Tailwind
colors: {
  custom: {
    50: '#7463a4',
    500: '#34287e',
    950: '#000000',
  },
}
SCSS
$custom: #34287e;
$custom-light: #7463a4;
$custom-dark: #000000;
JSON
{
  "hex": "#34287e",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 126
  },
  "hsl": {
    "h": 248.372,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34799,
    "c": 0.13862,
    "h": 282.8
  },
  "luminance": 0.03754
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #34287E

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

Preview Lab → · Contrast checker → · Palette generator →

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