#34318B#34318B

#34318B is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.5% C 0.145 H 278.3°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#34318B
RGBrgb(52, 49, 139)
HSLhsl(242, 48%, 37%)
HSVhsv(242, 65%, 55%)
CMYKcmyk(62.6%, 64.7%, 0%, 45.5%)
CIE-LABlab(26.13, 29.71, -49.78)
CIE-LCHlch(26.13, 57.97, 300.83°)
OKLaboklab(37.54% 0.0209 -0.1433)
OKLCHoklch(37.54% 0.145 278.3)
XYZxyz(7.1732, 4.7902, 24.9677)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34318B #888B31
analogous
#315B8B #34318B #61318B
triadic
#34318B #8B3431 #318B34
tetradic
#34318B #8B315B #888B31 #318B61
square
#34318B #8B315B #888B31 #318B61
split-complementary
#34318B #8B6131 #5B8B31
monochromatic
#121131 #23215E #34318B #4541B8 #6F6BCB

Accessibility & contrast

On white

10.72
#34318B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#34318B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34318B
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34318B#FFFFFF#000000##FFFFFF
##34318B1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#004859
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #34318b;
/* rgb */ color: rgb(52, 49, 139);
/* oklch */ color: oklch(37.5% 0.145 278.3);
Tailwind
colors: {
  custom: {
    50: '#7669ae',
    500: '#34318b',
    950: '#000000',
  },
}
SCSS
$custom: #34318b;
$custom-light: #7669ae;
$custom-dark: #000000;
JSON
{
  "hex": "#34318b",
  "rgb": {
    "r": 52,
    "g": 49,
    "b": 139
  },
  "hsl": {
    "h": 242,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37544,
    "c": 0.14481,
    "h": 278.3
  },
  "luminance": 0.04791
}

Semantic roles & 50–950 ramp

primary
#34318B
secondary
#B0B265
accent
#D750D3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #34318B

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

Preview Lab → · Contrast checker → · Palette generator →

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