#313B90#313B90

#313B90 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.139 H 273.2°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#313B90
RGBrgb(49, 59, 144)
HSLhsl(234, 49%, 38%)
HSVhsv(234, 66%, 56%)
CMYKcmyk(66%, 59%, 0%, 43.5%)
CIE-LABlab(28.89, 24.39, -48.39)
CIE-LCHlch(28.89, 54.19, 296.75°)
OKLaboklab(39.65% 0.0077 -0.1392)
OKLCHoklch(39.65% 0.139 273.2)
XYZxyz(7.8630, 5.7938, 27.0841)
Luminance0.0580 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B90 #908631
analogous
#316A90 #313B90 #563190
triadic
#313B90 #90313B #3B9031
tetradic
#313B90 #90316A #908631 #319056
square
#313B90 #90316A #908631 #319056
split-complementary
#313B90 #905631 #6A9031
monochromatic
#121635 #212862 #313B90 #414EBE #6E78CE

Accessibility & contrast

On white

9.73
#313B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#313B90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B90
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B90#FFFFFF#000000##FFFFFF
##313B901.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004893
Deuteranopia (green-blind)
#00408E
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313b90;
/* rgb */ color: rgb(49, 59, 144);
/* oklch */ color: oklch(39.7% 0.139 273.2);
Tailwind
colors: {
  custom: {
    50: '#7470b1',
    500: '#313b90',
    950: '#000000',
  },
}
SCSS
$custom: #313b90;
$custom-light: #7470b1;
$custom-dark: #000000;
JSON
{
  "hex": "#313b90",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 144
  },
  "hsl": {
    "h": 233.684,
    "s": 49.223,
    "l": 37.843
  },
  "oklch": {
    "l": 0.39652,
    "c": 0.13943,
    "h": 273.2
  },
  "luminance": 0.05795
}

Semantic roles & 50–950 ramp

primary
#313B90
secondary
#B5AD68
accent
#CA4FD9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313B90

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

Preview Lab → · Contrast checker → · Palette generator →

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