#313AB5#313AB5

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

Color values

HEX#313AB5
RGBrgb(49, 58, 181)
HSLhsl(236, 57%, 45%)
HSVhsv(236, 73%, 71%)
CMYKcmyk(72.9%, 68%, 0%, 29%)
CIE-LABlab(31.84, 38.32, -65.91)
CIE-LCHlch(31.84, 76.24, 300.17°)
OKLaboklab(42.81% 0.0066 -0.1906)
OKLCHoklch(42.81% 0.191 272)
XYZxyz(11.1174, 7.0141, 44.4751)
Luminance0.0702 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313AB5 #B5AC31
analogous
#317CB5 #313AB5 #6A31B5
triadic
#313AB5 #B5313A #3AB531
tetradic
#313AB5 #B5317C #B5AC31 #31B56A
square
#313AB5 #B5317C #B5AC31 #31B56A
split-complementary
#313AB5 #B56A31 #7CB531
monochromatic
#171B55 #242B85 #313AB5 #535BD0 #8389DD

Accessibility & contrast

On white

8.74
#313AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#313AB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313AB5
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313AB5#FFFFFF#000000##FFFFFF
##313AB51.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313ab5;
/* rgb */ color: rgb(49, 58, 181);
/* oklch */ color: oklch(42.8% 0.191 272.0);
Tailwind
colors: {
  custom: {
    50: '#7d70cc',
    500: '#313ab5',
    950: '#000000',
  },
}
SCSS
$custom: #313ab5;
$custom-light: #7d70cc;
$custom-dark: #000000;
JSON
{
  "hex": "#313ab5",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 181
  },
  "hsl": {
    "h": 235.909,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.4281,
    "c": 0.19071,
    "h": 272
  },
  "luminance": 0.07015
}

Semantic roles & 50–950 ramp

primary
#313AB5
secondary
#C7C27B
accent
#D647E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82

Preview Lab

Preview with #313AB5

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

Preview Lab → · Contrast checker → · Palette generator →

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