#311F90#311F90

#311F90 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.173 H 279.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#311F90
RGBrgb(49, 31, 144)
HSLhsl(250, 65%, 34%)
HSVhsv(250, 78%, 56%)
CMYKcmyk(66%, 78.5%, 0%, 43.5%)
CIE-LABlab(22.46, 41.66, -58.91)
CIE-LCHlch(22.46, 72.15, 305.27°)
OKLaboklab(35% 0.0297 -0.17)
OKLCHoklch(35% 0.173 279.9)
XYZxyz(6.7890, 3.6460, 26.7261)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F90 #7E901F
analogous
#1F4590 #311F90 #6A1F90
triadic
#311F90 #90311F #1F9031
tetradic
#311F90 #901F45 #7E901F #1F906A
square
#311F90 #901F45 #7E901F #1F906A
split-complementary
#311F90 #906A1F #45901F
monochromatic
#0F092B #20145E #311F90 #422AC2 #6650D9

Accessibility & contrast

On white

12.14
#311F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#311F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F90
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F90#FFFFFF#000000##FFFFFF
##311F901.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A93
Deuteranopia (green-blind)
#00318E
Tritanopia (blue-blind)
#004057
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #311f90;
/* rgb */ color: rgb(49, 31, 144);
/* oklch */ color: oklch(35.0% 0.173 279.9);
Tailwind
colors: {
  custom: {
    50: '#775eb2',
    500: '#311f90',
    950: '#000000',
  },
}
SCSS
$custom: #311f90;
$custom-light: #775eb2;
$custom-dark: #000000;
JSON
{
  "hex": "#311f90",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 144
  },
  "hsl": {
    "h": 249.558,
    "s": 64.571,
    "l": 34.314
  },
  "oklch": {
    "l": 0.35003,
    "c": 0.17262,
    "h": 279.9
  },
  "luminance": 0.03647
}

Semantic roles & 50–950 ramp

primary
#311F90
secondary
#ABBC4E
accent
#E840CD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311F90

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

Preview Lab → · Contrast checker → · Palette generator →

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