#313B92#313B92

#313B92 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.142 H 273.1°. Best body text is #FFFFFF at 9.67:1 contrast (WCAG AA passes).

Color values

HEX#313B92
RGBrgb(49, 59, 146)
HSLhsl(234, 50%, 38%)
HSVhsv(234, 66%, 57%)
CMYKcmyk(66.4%, 59.6%, 0%, 42.7%)
CIE-LABlab(29.04, 25.12, -49.36)
CIE-LCHlch(29.04, 55.39, 296.97°)
OKLaboklab(39.82% 0.0078 -0.1421)
OKLCHoklch(39.82% 0.142 273.1)
XYZxyz(8.0172, 5.8555, 27.8963)
Luminance0.0586 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B92 #928831
analogous
#316B92 #313B92 #573192
triadic
#313B92 #92313B #3B9231
tetradic
#313B92 #92316B #928831 #319257
square
#313B92 #92316B #928831 #319257
split-complementary
#313B92 #925731 #6B9231
monochromatic
#121636 #222864 #313B92 #414EBF #6F79CF

Accessibility & contrast

On white

9.67
#313B92 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#313B92 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B92
9.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B92#FFFFFF#000000##FFFFFF
##313B921.009.672.179.67
#FFFFFF9.671.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004995
Deuteranopia (green-blind)
#004090
Tritanopia (blue-blind)
#005060
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313b92;
/* rgb */ color: rgb(49, 59, 146);
/* oklch */ color: oklch(39.8% 0.142 273.1);
Tailwind
colors: {
  custom: {
    50: '#7570b3',
    500: '#313b92',
    950: '#000000',
  },
}
SCSS
$custom: #313b92;
$custom-light: #7570b3;
$custom-dark: #000000;
JSON
{
  "hex": "#313b92",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 146
  },
  "hsl": {
    "h": 233.814,
    "s": 49.744,
    "l": 38.235
  },
  "oklch": {
    "l": 0.3982,
    "c": 0.14228,
    "h": 273.1
  },
  "luminance": 0.05856
}

Semantic roles & 50–950 ramp

primary
#313B92
secondary
#B6AE69
accent
#CB4FD9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313B92

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

Preview Lab → · Contrast checker → · Palette generator →

#313B92 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva