#311F94#311F94

#311F94 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.4% C 0.177 H 279.3°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#311F94
RGBrgb(49, 31, 148)
HSLhsl(249, 65%, 35%)
HSVhsv(249, 79%, 58%)
CMYKcmyk(66.9%, 79.1%, 0%, 42%)
CIE-LABlab(22.90, 42.92, -60.67)
CIE-LCHlch(22.90, 74.31, 305.28°)
OKLaboklab(35.43% 0.0286 -0.1752)
OKLCHoklch(35.43% 0.178 279.3)
XYZxyz(7.1002, 3.7705, 28.3648)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311F94 #82941F
analogous
#1F4794 #311F94 #6C1F94
triadic
#311F94 #94311F #1F9431
tetradic
#311F94 #941F47 #82941F #1F946C
square
#311F94 #941F47 #82941F #1F946C
split-complementary
#311F94 #946C1F #47941F
monochromatic
#0F0A2F #201461 #311F94 #422AC7 #6853DB

Accessibility & contrast

On white

11.97
#311F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#311F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311F94
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311F94#FFFFFF#000000##FFFFFF
##311F941.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #311f94;
/* rgb */ color: rgb(49, 31, 148);
/* oklch */ color: oklch(35.4% 0.177 279.3);
Tailwind
colors: {
  custom: {
    50: '#785eb5',
    500: '#311f94',
    950: '#000000',
  },
}
SCSS
$custom: #311f94;
$custom-light: #785eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#311f94",
  "rgb": {
    "r": 49,
    "g": 31,
    "b": 148
  },
  "hsl": {
    "h": 249.231,
    "s": 65.363,
    "l": 35.098
  },
  "oklch": {
    "l": 0.35434,
    "c": 0.1775,
    "h": 279.3
  },
  "luminance": 0.03771
}

Semantic roles & 50–950 ramp

primary
#311F94
secondary
#ADBE51
accent
#E83FCE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #311F94

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

Preview Lab → · Contrast checker → · Palette generator →

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