#313BC4#313BC4

#313BC4 is a dark, highly saturated blue. Relative luminance 0.078; OKLCH L 44.4% C 0.209 H 271.2°. Best body text is #FFFFFF at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#313BC4
RGBrgb(49, 59, 196)
HSLhsl(236, 60%, 48%)
HSVhsv(236, 75%, 77%)
CMYKcmyk(75%, 69.9%, 0%, 23.1%)
CIE-LABlab(33.49, 42.91, -72.04)
CIE-LCHlch(33.49, 83.85, 300.78°)
OKLaboklab(44.43% 0.0044 -0.2085)
OKLCHoklch(44.43% 0.209 271.2)
XYZxyz(12.7910, 7.7651, 53.0385)
Luminance0.0777 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313BC4 #C4BA31
analogous
#3185C4 #313BC4 #7031C4
triadic
#313BC4 #C4313B #3BC431
tetradic
#313BC4 #C43185 #C4BA31 #31C470
square
#313BC4 #C43185 #C4BA31 #31C470
split-complementary
#313BC4 #C47031 #85C431
monochromatic
#191E62 #252C93 #313BC4 #5C64D6 #8D93E2

Accessibility & contrast

On white

8.22
#313BC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#313BC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313BC4
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313BC4#FFFFFF#000000##FFFFFF
##313BC41.008.222.558.22
#FFFFFF8.221.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#0048C1
Tritanopia (blue-blind)
#00617B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #313bc4;
/* rgb */ color: rgb(49, 59, 196);
/* oklch */ color: oklch(44.4% 0.209 271.2);
Tailwind
colors: {
  custom: {
    50: '#8072d7',
    500: '#313bc4',
    950: '#000000',
  },
}
SCSS
$custom: #313bc4;
$custom-light: #8072d7;
$custom-dark: #000000;
JSON
{
  "hex": "#313bc4",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 196
  },
  "hsl": {
    "h": 235.918,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44434,
    "c": 0.20854,
    "h": 271.2
  },
  "luminance": 0.07766
}

Semantic roles & 50–950 ramp

primary
#313BC4
secondary
#CDC884
accent
#D845E3
background
#F8F6FD
surface
#F0ECFA
border
#CBC7D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #313BC4

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

Preview Lab → · Contrast checker → · Palette generator →

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