#34317D#34317D

#34317D is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.3% C 0.125 H 279.9°. Best body text is #FFFFFF at 11.16:1 contrast (WCAG AA passes).

Color values

HEX#34317D
RGBrgb(52, 49, 125)
HSLhsl(242, 44%, 34%)
HSVhsv(242, 61%, 49%)
CMYKcmyk(58.4%, 60.8%, 0%, 51%)
CIE-LABlab(24.97, 24.83, -42.90)
CIE-LCHlch(24.97, 49.56, 300.06°)
OKLaboklab(36.33% 0.0216 -0.1231)
OKLCHoklch(36.33% 0.125 279.9)
XYZxyz(6.2150, 4.4069, 19.9212)
Luminance0.0441 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34317D #7A7D31
analogous
#31547D #34317D #5A317D
triadic
#34317D #7D3431 #317D34
tetradic
#34317D #7D3154 #7A7D31 #317D5A
square
#34317D #7D3154 #7A7D31 #317D5A
split-complementary
#34317D #7D5A31 #547D31
monochromatic
#0F0F25 #222051 #34317D #4642A9 #6966C3

Accessibility & contrast

On white

11.16
#34317D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#34317D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34317D
11.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34317D#FFFFFF#000000##FFFFFF
##34317D1.0011.161.8811.16
#FFFFFF11.161.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E80
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#0D4352
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #34317d;
/* rgb */ color: rgb(52, 49, 125);
/* oklch */ color: oklch(36.3% 0.125 279.9);
Tailwind
colors: {
  custom: {
    50: '#7369a3',
    500: '#34317d',
    950: '#000000',
  },
}
SCSS
$custom: #34317d;
$custom-light: #7369a3;
$custom-dark: #000000;
JSON
{
  "hex": "#34317d",
  "rgb": {
    "r": 52,
    "g": 49,
    "b": 125
  },
  "hsl": {
    "h": 242.368,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36333,
    "c": 0.12494,
    "h": 279.9
  },
  "luminance": 0.04407
}

Semantic roles & 50–950 ramp

primary
#34317D
secondary
#A7AA60
accent
#D354CE
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#09060F
muted
#7B7A7F

Preview Lab

Preview with #34317D

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

Preview Lab → · Contrast checker → · Palette generator →

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