#313AB4#313AB4

#313AB4 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.7% C 0.189 H 272.0°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#313AB4
RGBrgb(49, 58, 180)
HSLhsl(236, 57%, 45%)
HSVhsv(236, 73%, 71%)
CMYKcmyk(72.8%, 67.8%, 0%, 29.4%)
CIE-LABlab(31.75, 37.97, -65.47)
CIE-LCHlch(31.75, 75.69, 300.11°)
OKLaboklab(42.71% 0.0067 -0.1893)
OKLCHoklch(42.71% 0.189 272)
XYZxyz(11.0151, 6.9732, 43.9366)
Luminance0.0697 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AB4 #B4AB31
analogous
#317BB4 #313AB4 #6A31B4
triadic
#313AB4 #B4313A #3AB431
tetradic
#313AB4 #B4317B #B4AB31 #31B46A
square
#313AB4 #B4317B #B4AB31 #31B46A
split-complementary
#313AB4 #B46A31 #7BB431
monochromatic
#171B54 #242A84 #313AB4 #525BD0 #8289DD

Accessibility & contrast

On white

8.77
#313AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#313AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AB4
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AB4#FFFFFF#000000##FFFFFF
##313AB41.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#0045B2
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #313ab4;
/* rgb */ color: rgb(49, 58, 180);
/* oklch */ color: oklch(42.7% 0.189 272.0);
Tailwind
colors: {
  custom: {
    50: '#7c70cc',
    500: '#313ab4',
    950: '#000000',
  },
}
SCSS
$custom: #313ab4;
$custom-light: #7c70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#313ab4",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 180
  },
  "hsl": {
    "h": 235.878,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.42714,
    "c": 0.18944,
    "h": 272
  },
  "luminance": 0.06974
}

Semantic roles & 50–950 ramp

primary
#313AB4
secondary
#C6C17B
accent
#D647E0
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #313AB4

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

Preview Lab → · Contrast checker → · Palette generator →

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