#313F90#313F90

#313F90 is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.5% C 0.134 H 271.7°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#313F90
RGBrgb(49, 63, 144)
HSLhsl(231, 49%, 38%)
HSVhsv(231, 66%, 56%)
CMYKcmyk(66%, 56.3%, 0%, 43.5%)
CIE-LABlab(29.96, 21.70, -46.64)
CIE-LCHlch(29.96, 51.45, 294.95°)
OKLaboklab(40.46% 0.0039 -0.134)
OKLCHoklch(40.46% 0.134 271.7)
XYZxyz(8.0765, 6.2209, 27.1553)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313F90 #908231
analogous
#316E90 #313F90 #523190
triadic
#313F90 #90313F #3F9031
tetradic
#313F90 #90316E #908231 #319052
square
#313F90 #90316E #908231 #319052
split-complementary
#313F90 #905231 #6E9031
monochromatic
#121735 #212B62 #313F90 #4153BE #6E7CCE

Accessibility & contrast

On white

9.36
#313F90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#313F90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313F90
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313F90#FFFFFF#000000##FFFFFF
##313F901.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B93
Deuteranopia (green-blind)
#00428E
Tritanopia (blue-blind)
#005261
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313f90;
/* rgb */ color: rgb(49, 63, 144);
/* oklch */ color: oklch(40.5% 0.134 271.7);
Tailwind
colors: {
  custom: {
    50: '#7473b1',
    500: '#313f90',
    950: '#000000',
  },
}
SCSS
$custom: #313f90;
$custom-light: #7473b1;
$custom-dark: #000000;
JSON
{
  "hex": "#313f90",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 144
  },
  "hsl": {
    "h": 231.158,
    "s": 49.223,
    "l": 37.843
  },
  "oklch": {
    "l": 0.40457,
    "c": 0.13409,
    "h": 271.7
  },
  "luminance": 0.06222
}

Semantic roles & 50–950 ramp

primary
#313F90
secondary
#B5AA68
accent
#C44FD9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #313F90

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

Preview Lab → · Contrast checker → · Palette generator →

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