#34319B#34319B

#34319B is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.166 H 276.6°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#34319B
RGBrgb(52, 49, 155)
HSLhsl(242, 52%, 40%)
HSVhsv(242, 68%, 61%)
CMYKcmyk(66.5%, 68.4%, 0%, 39.2%)
CIE-LABlab(27.55, 35.25, -57.30)
CIE-LCHlch(27.55, 67.27, 301.60°)
OKLaboklab(39.02% 0.0193 -0.1653)
OKLCHoklch(39.02% 0.166 276.6)
XYZxyz(8.4290, 5.2925, 31.5814)
Luminance0.0529 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34319B #989B31
analogous
#31639B #34319B #69319B
triadic
#34319B #9B3431 #319B34
tetradic
#34319B #9B3163 #989B31 #319B69
square
#34319B #9B3163 #989B31 #319B69
split-complementary
#34319B #9B6931 #639B31
monochromatic
#15143E #24226D #34319B #4945C4 #7673D3

Accessibility & contrast

On white

10.20
#34319B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#34319B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34319B
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34319B#FFFFFF#000000##FFFFFF
##34319B1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469E
Deuteranopia (green-blind)
#003C99
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #34319b;
/* rgb */ color: rgb(52, 49, 155);
/* oklch */ color: oklch(39.0% 0.166 276.6);
Tailwind
colors: {
  custom: {
    50: '#796ab9',
    500: '#34319b',
    950: '#000000',
  },
}
SCSS
$custom: #34319b;
$custom-light: #796ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#34319b",
  "rgb": {
    "r": 52,
    "g": 49,
    "b": 155
  },
  "hsl": {
    "h": 241.698,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.39019,
    "c": 0.16647,
    "h": 276.6
  },
  "luminance": 0.05293
}

Semantic roles & 50–950 ramp

primary
#34319B
secondary
#B9BB6D
accent
#DB4CD7
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #34319B

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

Preview Lab → · Contrast checker → · Palette generator →

#34319B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva