#34318D#34318D

#34318D is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.7% C 0.148 H 278.1°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#34318D
RGBrgb(52, 49, 141)
HSLhsl(242, 48%, 37%)
HSVhsv(242, 65%, 55%)
CMYKcmyk(63.1%, 65.2%, 0%, 44.7%)
CIE-LABlab(26.30, 30.41, -50.74)
CIE-LCHlch(26.30, 59.15, 300.93°)
OKLaboklab(37.72% 0.0207 -0.1461)
OKLCHoklch(37.72% 0.148 278.1)
XYZxyz(7.3207, 4.8492, 25.7444)
Luminance0.0485 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34318D #8A8D31
analogous
#315C8D #34318D #62318D
triadic
#34318D #8D3431 #318D34
tetradic
#34318D #8D315C #8A8D31 #318D62
square
#34318D #8D315C #8A8D31 #318D62
split-complementary
#34318D #8D6231 #5C8D31
monochromatic
#131132 #232160 #34318D #4541BA #6F6CCC

Accessibility & contrast

On white

10.66
#34318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#34318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #34318D
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34318D#FFFFFF#000000##FFFFFF
##34318D1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #34318d;
/* rgb */ color: rgb(52, 49, 141);
/* oklch */ color: oklch(37.7% 0.148 278.1);
Tailwind
colors: {
  custom: {
    50: '#7669af',
    500: '#34318d',
    950: '#000000',
  },
}
SCSS
$custom: #34318d;
$custom-light: #7669af;
$custom-dark: #000000;
JSON
{
  "hex": "#34318d",
  "rgb": {
    "r": 52,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 241.957,
    "s": 48.421,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37723,
    "c": 0.14757,
    "h": 278.1
  },
  "luminance": 0.0485
}

Semantic roles & 50–950 ramp

primary
#34318D
secondary
#B1B466
accent
#D850D4
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #34318D

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

Preview Lab → · Contrast checker → · Palette generator →

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