#34288E#34288E

#34288E is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.160 H 280.2°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).

Color values

HEX#34288E
RGBrgb(52, 40, 142)
HSLhsl(247, 56%, 36%)
HSVhsv(247, 72%, 56%)
CMYKcmyk(63.4%, 71.8%, 0%, 44.3%)
CIE-LABlab(24.32, 36.34, -54.60)
CIE-LCHlch(24.32, 65.58, 303.65°)
OKLaboklab(36.32% 0.0282 -0.1574)
OKLCHoklch(36.32% 0.16 280.2)
XYZxyz(7.0559, 4.2001, 26.0248)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34288E #828E28
analogous
#284F8E #34288E #67288E
triadic
#34288E #8E3428 #288E34
tetradic
#34288E #8E284F #828E28 #288E67
square
#34288E #8E284F #828E28 #288E67
split-complementary
#34288E #8E6728 #4F8E28
monochromatic
#110D2F #231B5E #34288E #4535BE #6C5FD2

Accessibility & contrast

On white

11.41
#34288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#34288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34288E
11.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34288E#FFFFFF#000000##FFFFFF
##34288E1.0011.411.8411.41
#FFFFFF11.411.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E91
Deuteranopia (green-blind)
#00368C
Tritanopia (blue-blind)
#004458
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #34288e;
/* rgb */ color: rgb(52, 40, 142);
/* oklch */ color: oklch(36.3% 0.160 280.2);
Tailwind
colors: {
  custom: {
    50: '#7763b0',
    500: '#34288e',
    950: '#000000',
  },
}
SCSS
$custom: #34288e;
$custom-light: #7763b0;
$custom-dark: #000000;
JSON
{
  "hex": "#34288e",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 247.059,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36321,
    "c": 0.15994,
    "h": 280.2
  },
  "luminance": 0.04201
}

Semantic roles & 50–950 ramp

primary
#34288E
secondary
#ACB75B
accent
#DF48CE
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #34288E

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

Preview Lab → · Contrast checker → · Palette generator →

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