#34319E#34319E

#34319E is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.3% C 0.170 H 276.4°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#34319E
RGBrgb(52, 49, 158)
HSLhsl(242, 53%, 41%)
HSVhsv(242, 69%, 62%)
CMYKcmyk(67.1%, 69%, 0%, 38%)
CIE-LABlab(27.83, 36.27, -58.67)
CIE-LCHlch(27.83, 68.98, 301.73°)
OKLaboklab(39.31% 0.0189 -0.1694)
OKLCHoklch(39.31% 0.17 276.4)
XYZxyz(8.6840, 5.3946, 32.9247)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34319E #9B9E31
analogous
#31659E #34319E #6A319E
triadic
#34319E #9E3431 #319E34
tetradic
#34319E #9E3165 #9B9E31 #319E6A
square
#34319E #9E3165 #9B9E31 #319E6A
split-complementary
#34319E #9E6A31 #659E31
monochromatic
#151441 #25236F #34319E #4A46C6 #7875D4

Accessibility & contrast

On white

10.10
#34319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #34319E
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34319E#FFFFFF#000000##FFFFFF
##34319E1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003D9C
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #34319e;
/* rgb */ color: rgb(52, 49, 158);
/* oklch */ color: oklch(39.3% 0.170 276.4);
Tailwind
colors: {
  custom: {
    50: '#7a6abc',
    500: '#34319e',
    950: '#000000',
  },
}
SCSS
$custom: #34319e;
$custom-light: #7a6abc;
$custom-dark: #000000;
JSON
{
  "hex": "#34319e",
  "rgb": {
    "r": 52,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 241.651,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39305,
    "c": 0.17041,
    "h": 276.4
  },
  "luminance": 0.05395
}

Semantic roles & 50–950 ramp

primary
#34319E
secondary
#BABC6E
accent
#DC4CD8
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #34319E

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

Preview Lab → · Contrast checker → · Palette generator →

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