#312194#312194

#312194 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.176 H 279.0°. Best body text is #FFFFFF at 11.83:1 contrast (WCAG AA passes).

Color values

HEX#312194
RGBrgb(49, 33, 148)
HSLhsl(248, 64%, 35%)
HSVhsv(248, 78%, 58%)
CMYKcmyk(66.9%, 77.7%, 0%, 42%)
CIE-LABlab(23.26, 41.87, -60.06)
CIE-LCHlch(23.26, 73.21, 304.88°)
OKLaboklab(35.69% 0.0274 -0.1734)
OKLCHoklch(35.69% 0.176 279)
XYZxyz(7.1541, 3.8782, 28.3828)
Luminance0.0388 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312194 #849421
analogous
#214A94 #312194 #6A2194
triadic
#312194 #943121 #219431
tetradic
#312194 #94214A #849421 #21946A
square
#312194 #94214A #849421 #21946A
split-complementary
#312194 #946A21 #4A9421
monochromatic
#100B30 #201662 #312194 #422CC6 #6856D9

Accessibility & contrast

On white

11.83
#312194 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#312194 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312194
11.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312194#FFFFFF#000000##FFFFFF
##3121941.0011.831.7811.83
#FFFFFF11.831.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#004359
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #312194;
/* rgb */ color: rgb(49, 33, 148);
/* oklch */ color: oklch(35.7% 0.176 279.0);
Tailwind
colors: {
  custom: {
    50: '#785fb5',
    500: '#312194',
    950: '#000000',
  },
}
SCSS
$custom: #312194;
$custom-light: #785fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#312194",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 148
  },
  "hsl": {
    "h": 248.348,
    "s": 63.536,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35691,
    "c": 0.17559,
    "h": 279
  },
  "luminance": 0.03879
}

Semantic roles & 50–950 ramp

primary
#312194
secondary
#AEBD54
accent
#E741D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312194

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

Preview Lab → · Contrast checker → · Palette generator →

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