#311E94#311E94

#311E94 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.3% C 0.178 H 279.4°. Best body text is #FFFFFF at 12.04:1 contrast (WCAG AA passes).

Color values

HEX#311E94
RGBrgb(49, 30, 148)
HSLhsl(250, 66%, 35%)
HSVhsv(250, 80%, 58%)
CMYKcmyk(66.9%, 79.7%, 0%, 42%)
CIE-LABlab(22.72, 43.43, -60.96)
CIE-LCHlch(22.72, 74.85, 305.46°)
OKLaboklab(35.31% 0.0291 -0.176)
OKLCHoklch(35.31% 0.178 279.4)
XYZxyz(7.0745, 3.7191, 28.3563)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E94 #81941E
analogous
#1E4694 #311E94 #6C1E94
triadic
#311E94 #94311E #1E9431
tetradic
#311E94 #941E46 #81941E #1E946C
square
#311E94 #941E46 #81941E #1E946C
split-complementary
#311E94 #946C1E #46941E
monochromatic
#0F092E #201461 #311E94 #4228C7 #6751DC

Accessibility & contrast

On white

12.04
#311E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#311E94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E94
12.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E94#FFFFFF#000000##FFFFFF
##311E941.0012.041.7412.04
#FFFFFF12.041.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#004159
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #311e94;
/* rgb */ color: rgb(49, 30, 148);
/* oklch */ color: oklch(35.3% 0.178 279.4);
Tailwind
colors: {
  custom: {
    50: '#785db5',
    500: '#311e94',
    950: '#000000',
  },
}
SCSS
$custom: #311e94;
$custom-light: #785db5;
$custom-dark: #000000;
JSON
{
  "hex": "#311e94",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 148
  },
  "hsl": {
    "h": 249.661,
    "s": 66.292,
    "l": 34.902
  },
  "oklch": {
    "l": 0.3531,
    "c": 0.17843,
    "h": 279.4
  },
  "luminance": 0.0372
}

Semantic roles & 50–950 ramp

primary
#311E94
secondary
#ADBF4F
accent
#E93FCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311E94

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

Preview Lab → · Contrast checker → · Palette generator →

#311E94 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva