#313AA8#313AA8

#313AA8 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.6% C 0.174 H 272.6°. Best body text is #FFFFFF at 9.13:1 contrast (WCAG AA passes).

Color values

HEX#313AA8
RGBrgb(49, 58, 168)
HSLhsl(235, 55%, 43%)
HSVhsv(235, 71%, 66%)
CMYKcmyk(70.8%, 65.5%, 0%, 34.1%)
CIE-LABlab(30.65, 33.73, -60.10)
CIE-LCHlch(30.65, 68.91, 299.30°)
OKLaboklab(41.58% 0.0077 -0.1736)
OKLCHoklch(41.58% 0.174 272.6)
XYZxyz(9.8452, 6.5053, 37.7750)
Luminance0.0651 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AA8 #A89F31
analogous
#3176A8 #313AA8 #6331A8
triadic
#313AA8 #A8313A #3AA831
tetradic
#313AA8 #A83176 #A89F31 #31A863
square
#313AA8 #A83176 #A89F31 #31A863
split-complementary
#313AA8 #A86331 #76A831
monochromatic
#151949 #232A79 #313AA8 #4C55CB #7B82D8

Accessibility & contrast

On white

9.13
#313AA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#313AA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AA8
9.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AA8#FFFFFF#000000##FFFFFF
##313AA81.009.132.309.13
#FFFFFF9.131.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EAB
Deuteranopia (green-blind)
#0043A6
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #313aa8;
/* rgb */ color: rgb(49, 58, 168);
/* oklch */ color: oklch(41.6% 0.174 272.6);
Tailwind
colors: {
  custom: {
    50: '#7a70c3',
    500: '#313aa8',
    950: '#000000',
  },
}
SCSS
$custom: #313aa8;
$custom-light: #7a70c3;
$custom-dark: #000000;
JSON
{
  "hex": "#313aa8",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 168
  },
  "hsl": {
    "h": 235.462,
    "s": 54.839,
    "l": 42.549
  },
  "oklch": {
    "l": 0.41583,
    "c": 0.17376,
    "h": 272.6
  },
  "luminance": 0.06506
}

Semantic roles & 50–950 ramp

primary
#313AA8
secondary
#C1BB74
accent
#D34ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #313AA8

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

Preview Lab → · Contrast checker → · Palette generator →

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