#34378E#34378E

#34378E is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.9% C 0.141 H 276.1°. Best body text is #FFFFFF at 10.08:1 contrast (WCAG AA passes).

Color values

HEX#34378E
RGBrgb(52, 55, 142)
HSLhsl(238, 46%, 38%)
HSVhsv(238, 63%, 56%)
CMYKcmyk(63.4%, 61.3%, 0%, 44.3%)
CIE-LABlab(27.89, 26.84, -48.78)
CIE-LCHlch(27.89, 55.67, 298.83°)
OKLaboklab(38.91% 0.0151 -0.1403)
OKLCHoklch(38.91% 0.141 276.1)
XYZxyz(7.6633, 5.4148, 26.2273)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34378E #8E8B34
analogous
#34648E #34378E #5E348E
triadic
#34378E #8E3437 #378E34
tetradic
#34378E #8E3464 #8E8B34 #348E5E
square
#34378E #8E3464 #8E8B34 #348E5E
split-complementary
#34378E #8E5E34 #648E34
monochromatic
#131434 #242661 #34378E #4448BB #7174CB

Accessibility & contrast

On white

10.08
#34378E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#34378E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34378E
10.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34378E#FFFFFF#000000##FFFFFF
##34378E1.0010.082.0810.08
#FFFFFF10.081.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#004C5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #34378e;
/* rgb */ color: rgb(52, 55, 142);
/* oklch */ color: oklch(38.9% 0.141 276.1);
Tailwind
colors: {
  custom: {
    50: '#766eb0',
    500: '#34378e',
    950: '#000000',
  },
}
SCSS
$custom: #34378e;
$custom-light: #766eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#34378e",
  "rgb": {
    "r": 52,
    "g": 55,
    "b": 142
  },
  "hsl": {
    "h": 238,
    "s": 46.392,
    "l": 38.039
  },
  "oklch": {
    "l": 0.38913,
    "c": 0.14112,
    "h": 276.1
  },
  "luminance": 0.05415
}

Semantic roles & 50–950 ramp

primary
#34378E
secondary
#B3B16A
accent
#D252D6
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #34378E

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

Preview Lab → · Contrast checker → · Palette generator →

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