#34288B#34288B

#34288B is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.0% C 0.156 H 280.6°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#34288B
RGBrgb(52, 40, 139)
HSLhsl(247, 55%, 35%)
HSVhsv(247, 71%, 55%)
CMYKcmyk(62.6%, 71.2%, 0%, 45.5%)
CIE-LABlab(24.04, 35.34, -53.20)
CIE-LCHlch(24.04, 63.87, 303.60°)
OKLaboklab(36.03% 0.0288 -0.1533)
OKLCHoklch(36.03% 0.156 280.6)
XYZxyz(6.8337, 4.1112, 24.8545)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34288B #7F8B28
analogous
#284D8B #34288B #66288B
triadic
#34288B #8B3428 #288B34
tetradic
#34288B #8B284D #7F8B28 #288B66
square
#34288B #8B284D #7F8B28 #288B66
split-complementary
#34288B #8B6628 #4D8B28
monochromatic
#100D2C #221A5B #34288B #4636BB #6B5DD0

Accessibility & contrast

On white

11.52
#34288B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#34288B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34288B
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34288B#FFFFFF#000000##FFFFFF
##34288B1.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8E
Deuteranopia (green-blind)
#003589
Tritanopia (blue-blind)
#004256
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #34288b;
/* rgb */ color: rgb(52, 40, 139);
/* oklch */ color: oklch(36.0% 0.156 280.6);
Tailwind
colors: {
  custom: {
    50: '#7663ae',
    500: '#34288b',
    950: '#000000',
  },
}
SCSS
$custom: #34288b;
$custom-light: #7663ae;
$custom-dark: #000000;
JSON
{
  "hex": "#34288b",
  "rgb": {
    "r": 52,
    "g": 40,
    "b": 139
  },
  "hsl": {
    "h": 247.273,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.36029,
    "c": 0.15602,
    "h": 280.6
  },
  "luminance": 0.04112
}

Semantic roles & 50–950 ramp

primary
#34288B
secondary
#AAB659
accent
#DF49CD
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #34288B

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

Preview Lab → · Contrast checker → · Palette generator →

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