#312494#312494

#312494 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.1% C 0.173 H 278.5°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#312494
RGBrgb(49, 36, 148)
HSLhsl(247, 61%, 36%)
HSVhsv(247, 76%, 58%)
CMYKcmyk(66.9%, 75.7%, 0%, 42%)
CIE-LABlab(23.84, 40.22, -59.11)
CIE-LCHlch(23.84, 71.50, 304.24°)
OKLaboklab(36.1% 0.0256 -0.1707)
OKLCHoklch(36.1% 0.173 278.5)
XYZxyz(7.2411, 4.0522, 28.4118)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312494 #879424
analogous
#244F94 #312494 #692494
triadic
#312494 #943124 #249431
tetradic
#312494 #94244F #879424 #249469
square
#312494 #94244F #879424 #249469
split-complementary
#312494 #946924 #4F9424
monochromatic
#100C32 #211863 #312494 #4130C5 #6A5BD7

Accessibility & contrast

On white

11.60
#312494 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312494
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312494#FFFFFF#000000##FFFFFF
##3124941.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312494;
/* rgb */ color: rgb(49, 36, 148);
/* oklch */ color: oklch(36.1% 0.173 278.5);
Tailwind
colors: {
  custom: {
    50: '#7761b5',
    500: '#312494',
    950: '#000000',
  },
}
SCSS
$custom: #312494;
$custom-light: #7761b5;
$custom-dark: #000000;
JSON
{
  "hex": "#312494",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 148
  },
  "hsl": {
    "h": 246.964,
    "s": 60.87,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36099,
    "c": 0.17258,
    "h": 278.5
  },
  "luminance": 0.04053
}

Semantic roles & 50–950 ramp

primary
#312494
secondary
#B0BC58
accent
#E444D1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312494

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

Preview Lab → · Contrast checker → · Palette generator →

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