#34287F#34287F

#34287F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.140 H 282.6°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#34287F
RGBrgb(52, 40, 127)
HSLhsl(248, 52%, 33%)
HSVhsv(248, 69%, 50%)
CMYKcmyk(59.1%, 68.5%, 0%, 50.2%)
CIE-LABlab(22.93, 31.34, -47.49)
CIE-LCHlch(22.93, 56.90, 303.42°)
OKLaboklab(34.89% 0.0306 -0.1366)
OKLCHoklch(34.89% 0.14 282.6)
XYZxyz(6.0045, 3.7796, 20.4877)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34287F #737F28
analogous
#28477F #34287F #5F287F
triadic
#34287F #7F3428 #287F34
tetradic
#34287F #7F2847 #737F28 #287F5F
square
#34287F #7F2847 #737F28 #287F5F
split-complementary
#34287F #7F5F28 #477F28
monochromatic
#0E0B22 #211950 #34287F #4737AE #6757CA

Accessibility & contrast

On white

11.96
#34287F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#34287F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34287F
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34287F#FFFFFF#000000##FFFFFF
##34287F1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A82
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#0C3E50
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #34287f;
/* rgb */ color: rgb(52, 40, 127);
/* oklch */ color: oklch(34.9% 0.140 282.6);
Tailwind
colors: {
  custom: {
    50: '#7463a5',
    500: '#34287f',
    950: '#000000',
  },
}
SCSS
$custom: #34287f;
$custom-light: #7463a5;
$custom-dark: #000000;
JSON
{
  "hex": "#34287f",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 127
  },
  "hsl": {
    "h": 248.276,
    "s": 52.096,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34891,
    "c": 0.13998,
    "h": 282.6
  },
  "luminance": 0.0378
}

Semantic roles & 50–950 ramp

primary
#34287F
secondary
#A3AF54
accent
#DC4CC8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#09050F
muted
#7B797F

Preview Lab

Preview with #34287F

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

Preview Lab → · Contrast checker → · Palette generator →

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