#312399#312399

#312399 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.5% C 0.180 H 278.0°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#312399
RGBrgb(49, 35, 153)
HSLhsl(247, 63%, 37%)
HSVhsv(247, 77%, 60%)
CMYKcmyk(68%, 77.1%, 0%, 40%)
CIE-LABlab(24.18, 42.39, -61.64)
CIE-LCHlch(24.18, 74.81, 304.51°)
OKLaboklab(36.49% 0.025 -0.1781)
OKLCHoklch(36.49% 0.18 278)
XYZxyz(7.6156, 4.1543, 30.5313)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312399 #8B9923
analogous
#235099 #312399 #6C2399
triadic
#312399 #993123 #239931
tetradic
#312399 #992350 #8B9923 #23996C
square
#312399 #992350 #8B9923 #23996C
split-complementary
#312399 #996C23 #509923
monochromatic
#110C35 #211867 #312399 #412ECB #6B5DDA

Accessibility & contrast

On white

11.47
#312399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#312399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312399
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312399#FFFFFF#000000##FFFFFF
##3123991.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003597
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312399;
/* rgb */ color: rgb(49, 35, 153);
/* oklch */ color: oklch(36.5% 0.180 278.0);
Tailwind
colors: {
  custom: {
    50: '#7861b8',
    500: '#312399',
    950: '#000000',
  },
}
SCSS
$custom: #312399;
$custom-light: #7861b8;
$custom-dark: #000000;
JSON
{
  "hex": "#312399",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 153
  },
  "hsl": {
    "h": 247.119,
    "s": 62.766,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3649,
    "c": 0.1798,
    "h": 278
  },
  "luminance": 0.04155
}

Semantic roles & 50–950 ramp

primary
#312399
secondary
#B2BE59
accent
#E642D2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #312399

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

Preview Lab → · Contrast checker → · Palette generator →

#312399 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva