#34288D#34288D

#34288D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.159 H 280.3°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#34288D
RGBrgb(52, 40, 141)
HSLhsl(247, 56%, 35%)
HSVhsv(247, 72%, 55%)
CMYKcmyk(63.1%, 71.6%, 0%, 44.7%)
CIE-LABlab(24.23, 36.01, -54.13)
CIE-LCHlch(24.23, 65.02, 303.63°)
OKLaboklab(36.22% 0.0284 -0.1561)
OKLCHoklch(36.22% 0.159 280.3)
XYZxyz(6.9812, 4.1702, 25.6312)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34288D #818D28
analogous
#284E8D #34288D #66288D
triadic
#34288D #8D3428 #288D34
tetradic
#34288D #8D284E #818D28 #288D66
square
#34288D #8D284E #818D28 #288D66
split-complementary
#34288D #8D6628 #4E8D28
monochromatic
#110D2E #221A5D #34288D #4636BD #6C5ED1

Accessibility & contrast

On white

11.45
#34288D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#34288D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34288D
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34288D#FFFFFF#000000##FFFFFF
##34288D1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00368B
Tritanopia (blue-blind)
#004357
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #34288d;
/* rgb */ color: rgb(52, 40, 141);
/* oklch */ color: oklch(36.2% 0.159 280.3);
Tailwind
colors: {
  custom: {
    50: '#7763af',
    500: '#34288d',
    950: '#000000',
  },
}
SCSS
$custom: #34288d;
$custom-light: #7763af;
$custom-dark: #000000;
JSON
{
  "hex": "#34288d",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 141
  },
  "hsl": {
    "h": 247.129,
    "s": 55.801,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36224,
    "c": 0.15864,
    "h": 280.3
  },
  "luminance": 0.04171
}

Semantic roles & 50–950 ramp

primary
#34288D
secondary
#ACB75A
accent
#DF49CD
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#0A0510
muted
#7C7A7F

Preview Lab

Preview with #34288D

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

Preview Lab → · Contrast checker → · Palette generator →

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