#312199#312199

#312199 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.182 H 278.3°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#312199
RGBrgb(49, 33, 153)
HSLhsl(248, 65%, 36%)
HSVhsv(248, 78%, 60%)
CMYKcmyk(68%, 78.4%, 0%, 40%)
CIE-LABlab(23.80, 43.45, -62.25)
CIE-LCHlch(23.80, 75.92, 304.91°)
OKLaboklab(36.23% 0.0261 -0.1798)
OKLCHoklch(36.23% 0.182 278.3)
XYZxyz(7.5584, 4.0399, 30.5123)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312199 #899921
analogous
#214D99 #312199 #6D2199
triadic
#312199 #993121 #219931
tetradic
#312199 #99214D #899921 #21996D
square
#312199 #99214D #899921 #21996D
split-complementary
#312199 #996D21 #4D9921
monochromatic
#110B34 #211667 #312199 #412CCB #6B59DB

Accessibility & contrast

On white

11.61
#312199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#312199 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312199
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312199#FFFFFF#000000##FFFFFF
##3121991.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9C
Deuteranopia (green-blind)
#003497
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312199;
/* rgb */ color: rgb(49, 33, 153);
/* oklch */ color: oklch(36.2% 0.182 278.3);
Tailwind
colors: {
  custom: {
    50: '#795fb8',
    500: '#312199',
    950: '#000000',
  },
}
SCSS
$custom: #312199;
$custom-light: #795fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#312199",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 248,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36229,
    "c": 0.18171,
    "h": 278.3
  },
  "luminance": 0.04041
}

Semantic roles & 50–950 ramp

primary
#312199
secondary
#B1BF56
accent
#E840D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #312199

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

Preview Lab → · Contrast checker → · Palette generator →

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