#34398F#34398F

#34398F is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.140 H 275.4°. Best body text is #FFFFFF at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#34398F
RGBrgb(52, 57, 143)
HSLhsl(237, 47%, 38%)
HSVhsv(237, 64%, 56%)
CMYKcmyk(63.6%, 60.1%, 0%, 43.9%)
CIE-LABlab(28.48, 25.88, -48.42)
CIE-LCHlch(28.48, 54.90, 298.12°)
OKLaboklab(39.38% 0.0132 -0.1393)
OKLCHoklch(39.38% 0.14 275.4)
XYZxyz(7.8356, 5.6389, 26.6568)
Luminance0.0564 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34398F #8F8A34
analogous
#34668F #34398F #5C348F
triadic
#34398F #8F3439 #398F34
tetradic
#34398F #8F3466 #8F8A34 #348F5C
square
#34398F #8F3466 #8F8A34 #348F5C
split-complementary
#34398F #8F5C34 #668F34
monochromatic
#131535 #242762 #34398F #454BBB #7277CC

Accessibility & contrast

On white

9.87
#34398F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#34398F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34398F
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34398F#FFFFFF#000000##FFFFFF
##34398F1.009.872.139.87
#FFFFFF9.871.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004792
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#004E5E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #34398f;
/* rgb */ color: rgb(52, 57, 143);
/* oklch */ color: oklch(39.4% 0.140 275.4);
Tailwind
colors: {
  custom: {
    50: '#766fb0',
    500: '#34398f',
    950: '#000000',
  },
}
SCSS
$custom: #34398f;
$custom-light: #766fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#34398f",
  "rgb": {
    "r": 52,
    "g": 57,
    "b": 143
  },
  "hsl": {
    "h": 236.703,
    "s": 46.667,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3938,
    "c": 0.13987,
    "h": 275.4
  },
  "luminance": 0.05639
}

Semantic roles & 50–950 ramp

primary
#34398F
secondary
#B4B06B
accent
#CF51D6
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #34398F

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

Preview Lab → · Contrast checker → · Palette generator →

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