#312394#312394

#312394 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.174 H 278.7°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#312394
RGBrgb(49, 35, 148)
HSLhsl(247, 62%, 36%)
HSVhsv(247, 76%, 58%)
CMYKcmyk(66.9%, 76.4%, 0%, 42%)
CIE-LABlab(23.65, 40.78, -59.43)
CIE-LCHlch(23.65, 72.08, 304.46°)
OKLaboklab(35.96% 0.0262 -0.1716)
OKLCHoklch(35.96% 0.174 278.7)
XYZxyz(7.2112, 3.9926, 28.4019)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312394 #869423
analogous
#234D94 #312394 #692394
triadic
#312394 #943123 #239431
tetradic
#312394 #94234D #869423 #239469
square
#312394 #94234D #869423 #239469
split-complementary
#312394 #946923 #4D9423
monochromatic
#100C31 #211763 #312394 #412FC5 #695AD8

Accessibility & contrast

On white

11.68
#312394 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#312394 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312394
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312394#FFFFFF#000000##FFFFFF
##3123941.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D97
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #312394;
/* rgb */ color: rgb(49, 35, 148);
/* oklch */ color: oklch(36.0% 0.174 278.7);
Tailwind
colors: {
  custom: {
    50: '#7760b5',
    500: '#312394',
    950: '#000000',
  },
}
SCSS
$custom: #312394;
$custom-light: #7760b5;
$custom-dark: #000000;
JSON
{
  "hex": "#312394",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 148
  },
  "hsl": {
    "h": 247.434,
    "s": 61.749,
    "l": 35.882
  },
  "oklch": {
    "l": 0.3596,
    "c": 0.17361,
    "h": 278.7
  },
  "luminance": 0.03993
}

Semantic roles & 50–950 ramp

primary
#312394
secondary
#B0BC57
accent
#E543D1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312394

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

Preview Lab → · Contrast checker → · Palette generator →

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