#34317E#34317E

#34317E is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.126 H 279.8°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#34317E
RGBrgb(52, 49, 126)
HSLhsl(242, 44%, 34%)
HSVhsv(242, 61%, 49%)
CMYKcmyk(58.7%, 61.1%, 0%, 50.6%)
CIE-LABlab(25.05, 25.18, -43.40)
CIE-LCHlch(25.05, 50.17, 300.12°)
OKLaboklab(36.42% 0.0216 -0.1245)
OKLCHoklch(36.42% 0.126 279.8)
XYZxyz(6.2792, 4.4326, 20.2593)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34317E #7B7E31
analogous
#31557E #34317E #5B317E
triadic
#34317E #7E3431 #317E34
tetradic
#34317E #7E3155 #7B7E31 #317E5B
square
#34317E #7E3155 #7B7E31 #317E5B
split-complementary
#34317E #7E5B31 #557E31
monochromatic
#100F26 #222052 #34317E #4642AA #6A66C3

Accessibility & contrast

On white

11.13
#34317E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#34317E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34317E
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34317E#FFFFFF#000000##FFFFFF
##34317E1.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00387C
Tritanopia (blue-blind)
#0B4352
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #34317e;
/* rgb */ color: rgb(52, 49, 126);
/* oklch */ color: oklch(36.4% 0.126 279.8);
Tailwind
colors: {
  custom: {
    50: '#7369a4',
    500: '#34317e',
    950: '#000000',
  },
}
SCSS
$custom: #34317e;
$custom-light: #7369a4;
$custom-dark: #000000;
JSON
{
  "hex": "#34317e",
  "rgb": {
    "r": 52,
    "g": 49,
    "b": 126
  },
  "hsl": {
    "h": 242.338,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.36417,
    "c": 0.12639,
    "h": 279.8
  },
  "luminance": 0.04433
}

Semantic roles & 50–950 ramp

primary
#34317E
secondary
#A8AB60
accent
#D454CF
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #34317E

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

Preview Lab → · Contrast checker → · Palette generator →

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