#312994#312994

#312994 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.167 H 277.6°. Best body text is #FFFFFF at 11.20:1 contrast (WCAG AA passes).

Color values

HEX#312994
RGBrgb(49, 41, 148)
HSLhsl(244, 57%, 37%)
HSVhsv(244, 72%, 58%)
CMYKcmyk(66.9%, 72.3%, 0%, 42%)
CIE-LABlab(24.88, 37.33, -57.40)
CIE-LCHlch(24.88, 68.48, 303.04°)
OKLaboklab(36.84% 0.0222 -0.1657)
OKLCHoklch(36.84% 0.167 277.6)
XYZxyz(7.4031, 4.3763, 28.4658)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312994 #8C9429
analogous
#295794 #312994 #672994
triadic
#312994 #943129 #299431
tetradic
#312994 #942957 #8C9429 #299467
square
#312994 #942957 #8C9429 #299467
split-complementary
#312994 #946729 #579429
monochromatic
#110E34 #211C64 #312994 #4136C4 #6C63D4

Accessibility & contrast

On white

11.20
#312994 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#312994 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312994
11.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312994#FFFFFF#000000##FFFFFF
##3129941.0011.201.8811.20
#FFFFFF11.201.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#003792
Tritanopia (blue-blind)
#00465B
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #312994;
/* rgb */ color: rgb(49, 41, 148);
/* oklch */ color: oklch(36.8% 0.167 277.6);
Tailwind
colors: {
  custom: {
    50: '#7764b4',
    500: '#312994',
    950: '#000000',
  },
}
SCSS
$custom: #312994;
$custom-light: #7764b4;
$custom-dark: #000000;
JSON
{
  "hex": "#312994",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 148
  },
  "hsl": {
    "h": 244.486,
    "s": 56.614,
    "l": 37.059
  },
  "oklch": {
    "l": 0.36835,
    "c": 0.16721,
    "h": 277.6
  },
  "luminance": 0.04377
}

Semantic roles & 50–950 ramp

primary
#312994
secondary
#B3BA5F
accent
#E048D5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #312994

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

Preview Lab → · Contrast checker → · Palette generator →

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