#313A96#313A96

#313A96 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.0% C 0.149 H 273.3°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#313A96
RGBrgb(49, 58, 150)
HSLhsl(235, 51%, 39%)
HSVhsv(235, 67%, 59%)
CMYKcmyk(67.3%, 61.3%, 0%, 41.2%)
CIE-LABlab(29.11, 27.24, -51.71)
CIE-LCHlch(29.11, 58.45, 297.78°)
OKLaboklab(39.97% 0.0086 -0.149)
OKLCHoklch(39.97% 0.149 273.3)
XYZxyz(8.2829, 5.8803, 29.5468)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A96 #968D31
analogous
#316D96 #313A96 #5B3196
triadic
#313A96 #96313A #3A9631
tetradic
#313A96 #96316D #968D31 #31965B
square
#313A96 #96316D #968D31 #31965B
split-complementary
#313A96 #965B31 #6D9631
monochromatic
#13163A #222868 #313A96 #434EC1 #7179D1

Accessibility & contrast

On white

9.65
#313A96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#313A96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A96
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A96#FFFFFF#000000##FFFFFF
##313A961.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#004094
Tritanopia (blue-blind)
#005162
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #313a96;
/* rgb */ color: rgb(49, 58, 150);
/* oklch */ color: oklch(40.0% 0.149 273.3);
Tailwind
colors: {
  custom: {
    50: '#7670b6',
    500: '#313a96',
    950: '#000000',
  },
}
SCSS
$custom: #313a96;
$custom-light: #7670b6;
$custom-dark: #000000;
JSON
{
  "hex": "#313a96",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 150
  },
  "hsl": {
    "h": 234.653,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.39969,
    "c": 0.14923,
    "h": 273.3
  },
  "luminance": 0.05881
}

Semantic roles & 50–950 ramp

primary
#313A96
secondary
#B8B16A
accent
#CE4EDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313A96

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

Preview Lab → · Contrast checker → · Palette generator →

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