#34398E#34398E

#34398E is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.3% C 0.138 H 275.5°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#34398E
RGBrgb(52, 57, 142)
HSLhsl(237, 46%, 38%)
HSVhsv(237, 63%, 56%)
CMYKcmyk(63.4%, 59.9%, 0%, 44.3%)
CIE-LABlab(28.40, 25.52, -47.93)
CIE-LCHlch(28.40, 54.30, 298.03°)
OKLaboklab(39.3% 0.0132 -0.1378)
OKLCHoklch(39.3% 0.138 275.5)
XYZxyz(7.7602, 5.6087, 26.2596)
Luminance0.0561 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34398E #8E8934
analogous
#34668E #34398E #5C348E
triadic
#34398E #8E3439 #398E34
tetradic
#34398E #8E3466 #8E8934 #348E5C
square
#34398E #8E3466 #8E8934 #348E5C
split-complementary
#34398E #8E5C34 #668E34
monochromatic
#131534 #242761 #34398E #444BBB #7176CB

Accessibility & contrast

On white

9.90
#34398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#34398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34398E
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34398E#FFFFFF#000000##FFFFFF
##34398E1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #34398e;
/* rgb */ color: rgb(52, 57, 142);
/* oklch */ color: oklch(39.3% 0.138 275.5);
Tailwind
colors: {
  custom: {
    50: '#766fb0',
    500: '#34398e',
    950: '#000000',
  },
}
SCSS
$custom: #34398e;
$custom-light: #766fb0;
$custom-dark: #000000;
JSON
{
  "hex": "#34398e",
  "rgb": {
    "r": 52,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 236.667,
    "s": 46.392,
    "l": 38.039
  },
  "oklch": {
    "l": 0.39296,
    "c": 0.13844,
    "h": 275.5
  },
  "luminance": 0.05609
}

Semantic roles & 50–950 ramp

primary
#34398E
secondary
#B3AF6A
accent
#CF52D6
background
#F7F6FA
surface
#EEECF5
border
#C9C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #34398E

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

Preview Lab → · Contrast checker → · Palette generator →

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