#311F8D#311F8D

#311F8D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.7% C 0.169 H 280.4°. Best body text is #FFFFFF at 12.27:1 contrast (WCAG AA passes).

Color values

HEX#311F8D
RGBrgb(49, 31, 141)
HSLhsl(250, 64%, 34%)
HSVhsv(250, 78%, 55%)
CMYKcmyk(65.2%, 78%, 0%, 44.7%)
CIE-LABlab(22.14, 40.71, -57.57)
CIE-LCHlch(22.14, 70.51, 305.27°)
OKLaboklab(34.68% 0.0305 -0.1661)
OKLCHoklch(34.68% 0.169 280.4)
XYZxyz(6.5628, 3.5555, 25.5346)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F8D #7B8D1F
analogous
#1F448D #311F8D #681F8D
triadic
#311F8D #8D311F #1F8D31
tetradic
#311F8D #8D1F44 #7B8D1F #1F8D68
square
#311F8D #8D1F44 #7B8D1F #1F8D68
split-complementary
#311F8D #8D681F #448D1F
monochromatic
#0E0929 #20145B #311F8D #422ABF #654ED8

Accessibility & contrast

On white

12.27
#311F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#311F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F8D
12.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F8D#FFFFFF#000000##FFFFFF
##311F8D1.0012.271.7112.27
#FFFFFF12.271.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003990
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #311f8d;
/* rgb */ color: rgb(49, 31, 141);
/* oklch */ color: oklch(34.7% 0.169 280.4);
Tailwind
colors: {
  custom: {
    50: '#765eaf',
    500: '#311f8d',
    950: '#000000',
  },
}
SCSS
$custom: #311f8d;
$custom-light: #765eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#311f8d",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 249.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.34682,
    "c": 0.16892,
    "h": 280.4
  },
  "luminance": 0.03556
}

Semantic roles & 50–950 ramp

primary
#311F8D
secondary
#A9BB4D
accent
#E741CC
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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