#34399B#34399B

#34399B is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.4% C 0.157 H 274.7°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#34399B
RGBrgb(52, 57, 155)
HSLhsl(237, 50%, 41%)
HSVhsv(237, 66%, 61%)
CMYKcmyk(66.5%, 63.2%, 0%, 39.2%)
CIE-LABlab(29.47, 30.16, -54.17)
CIE-LCHlch(29.47, 62.00, 299.11°)
OKLaboklab(40.42% 0.0128 -0.1561)
OKLCHoklch(40.42% 0.157 274.7)
XYZxyz(8.7937, 6.0221, 31.7030)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34399B #9B9634
analogous
#346C9B #34399B #62349B
triadic
#34399B #9B3439 #399B34
tetradic
#34399B #9B346C #9B9634 #349B62
square
#34399B #9B346C #9B9634 #349B62
split-complementary
#34399B #9B6234 #6C9B34
monochromatic
#15173F #25286D #34399B #4A50C2 #787CD2

Accessibility & contrast

On white

9.53
#34399B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#34399B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34399B
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34399B#FFFFFF#000000##FFFFFF
##34399B1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004199
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #34399b;
/* rgb */ color: rgb(52, 57, 155);
/* oklch */ color: oklch(40.4% 0.157 274.7);
Tailwind
colors: {
  custom: {
    50: '#786fb9',
    500: '#34399b',
    950: '#000000',
  },
}
SCSS
$custom: #34399b;
$custom-light: #786fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#34399b",
  "rgb": {
    "r": 52,
    "g": 57,
    "b": 155
  },
  "hsl": {
    "h": 237.087,
    "s": 49.758,
    "l": 40.588
  },
  "oklch": {
    "l": 0.40416,
    "c": 0.15664,
    "h": 274.7
  },
  "luminance": 0.06023
}

Semantic roles & 50–950 ramp

primary
#34399B
secondary
#BAB771
accent
#D34FD9
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #34399B

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

Preview Lab → · Contrast checker → · Palette generator →

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