#34318A#34318A

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

Color values

HEX#34318A
RGBrgb(52, 49, 138)
HSLhsl(242, 48%, 37%)
HSVhsv(242, 64%, 54%)
CMYKcmyk(62.3%, 64.5%, 0%, 45.9%)
CIE-LABlab(26.04, 29.36, -49.30)
CIE-LCHlch(26.04, 57.38, 300.78°)
OKLaboklab(37.46% 0.021 -0.1419)
OKLCHoklch(37.46% 0.143 278.4)
XYZxyz(7.1005, 4.7611, 24.5846)
Luminance0.0476 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34318A #878A31
analogous
#315B8A #34318A #61318A
triadic
#34318A #8A3431 #318A34
tetradic
#34318A #8A315B #878A31 #318A61
square
#34318A #8A315B #878A31 #318A61
split-complementary
#34318A #8A6131 #5B8A31
monochromatic
#121130 #23215D #34318A #4541B7 #6E6BCA

Accessibility & contrast

On white

10.76
#34318A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#34318A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34318A
10.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34318A#FFFFFF#000000##FFFFFF
##34318A1.0010.761.9510.76
#FFFFFF10.761.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00418D
Deuteranopia (green-blind)
#003A88
Tritanopia (blue-blind)
#004758
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #34318a;
/* rgb */ color: rgb(52, 49, 138);
/* oklch */ color: oklch(37.5% 0.143 278.4);
Tailwind
colors: {
  custom: {
    50: '#7569ad',
    500: '#34318a',
    950: '#000000',
  },
}
SCSS
$custom: #34318a;
$custom-light: #7569ad;
$custom-dark: #000000;
JSON
{
  "hex": "#34318a",
  "rgb": {
    "r": 52,
    "g": 49,
    "b": 138
  },
  "hsl": {
    "h": 242.022,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.37455,
    "c": 0.14342,
    "h": 278.4
  },
  "luminance": 0.04762
}

Semantic roles & 50–950 ramp

primary
#34318A
secondary
#AFB265
accent
#D751D3
background
#F7F6FA
surface
#EEEBF4
border
#C9C6CE
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #34318A

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

Preview Lab → · Contrast checker → · Palette generator →

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