#313EA1#313EA1

#313EA1 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.7% C 0.159 H 271.8°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#313EA1
RGBrgb(49, 62, 161)
HSLhsl(233, 53%, 41%)
HSVhsv(233, 70%, 63%)
CMYKcmyk(69.6%, 61.5%, 0%, 36.9%)
CIE-LABlab(31.04, 28.61, -55.24)
CIE-LCHlch(31.04, 62.21, 297.38°)
OKLaboklab(41.69% 0.0051 -0.1593)
OKLCHoklch(41.69% 0.159 271.8)
XYZxyz(9.4201, 6.6705, 34.5024)
Luminance0.0667 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313EA1 #A19431
analogous
#3176A1 #313EA1 #5C31A1
triadic
#313EA1 #A1313E #3EA131
tetradic
#313EA1 #A13176 #A19431 #31A15C
square
#313EA1 #A13176 #A19431 #31A15C
split-complementary
#313EA1 #A15C31 #76A131
monochromatic
#141A43 #232C72 #313EA1 #4857C7 #7782D6

Accessibility & contrast

On white

9.00
#313EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#313EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313EA1
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313EA1#FFFFFF#000000##FFFFFF
##313EA11.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EA4
Deuteranopia (green-blind)
#00449F
Tritanopia (blue-blind)
#005769
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #313ea1;
/* rgb */ color: rgb(49, 62, 161);
/* oklch */ color: oklch(41.7% 0.159 271.8);
Tailwind
colors: {
  custom: {
    50: '#7873be',
    500: '#313ea1',
    950: '#000000',
  },
}
SCSS
$custom: #313ea1;
$custom-light: #7873be;
$custom-dark: #000000;
JSON
{
  "hex": "#313ea1",
  "rgb": {
    "r": 49,
    "g": 62,
    "b": 161
  },
  "hsl": {
    "h": 233.036,
    "s": 53.333,
    "l": 41.176
  },
  "oklch": {
    "l": 0.41685,
    "c": 0.15939,
    "h": 271.8
  },
  "luminance": 0.06671
}

Semantic roles & 50–950 ramp

primary
#313EA1
secondary
#BEB570
accent
#CC4BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0812
muted
#7C7B81

Preview Lab

Preview with #313EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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