#311E98#311E98

#311E98 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.7% C 0.183 H 278.8°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#311E98
RGBrgb(49, 30, 152)
HSLhsl(249, 67%, 36%)
HSVhsv(249, 80%, 60%)
CMYKcmyk(67.8%, 80.3%, 0%, 40.4%)
CIE-LABlab(23.16, 44.67, -62.70)
CIE-LCHlch(23.16, 76.98, 305.47°)
OKLaboklab(35.75% 0.028 -0.1811)
OKLCHoklch(35.75% 0.183 278.8)
XYZxyz(7.3966, 3.8479, 30.0526)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311E98 #85981E
analogous
#1E4898 #311E98 #6E1E98
triadic
#311E98 #98311E #1E9831
tetradic
#311E98 #981E48 #85981E #1E986E
square
#311E98 #981E48 #85981E #1E986E
split-complementary
#311E98 #986E1E #48981E
monochromatic
#100A32 #211465 #311E98 #4128CB #6953DD

Accessibility & contrast

On white

11.87
#311E98 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#311E98 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311E98
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311E98#FFFFFF#000000##FFFFFF
##311E981.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9B
Deuteranopia (green-blind)
#003296
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #311e98;
/* rgb */ color: rgb(49, 30, 152);
/* oklch */ color: oklch(35.7% 0.183 278.8);
Tailwind
colors: {
  custom: {
    50: '#795eb8',
    500: '#311e98',
    950: '#000000',
  },
}
SCSS
$custom: #311e98;
$custom-light: #795eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#311e98",
  "rgb": {
    "r": 49,
    "g": 30,
    "b": 152
  },
  "hsl": {
    "h": 249.344,
    "s": 67.033,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35749,
    "c": 0.18323,
    "h": 278.8
  },
  "luminance": 0.03849
}

Semantic roles & 50–950 ramp

primary
#311E98
secondary
#AFC051
accent
#EA3ECF
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311E98

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

Preview Lab → · Contrast checker → · Palette generator →

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