#313DC4#313DC4

#313DC4 is a dark, highly saturated blue. Relative luminance 0.080; OKLCH L 44.8% C 0.206 H 270.9°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#313DC4
RGBrgb(49, 61, 196)
HSLhsl(235, 60%, 48%)
HSVhsv(235, 75%, 77%)
CMYKcmyk(75%, 68.9%, 0%, 23.1%)
CIE-LABlab(33.93, 41.71, -71.31)
CIE-LCHlch(33.93, 82.62, 300.32°)
OKLaboklab(44.75% 0.0033 -0.2064)
OKLCHoklch(44.75% 0.206 270.9)
XYZxyz(12.8958, 7.9746, 53.0735)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DC4 #C4B831
analogous
#3186C4 #313DC4 #6E31C4
triadic
#313DC4 #C4313D #3DC431
tetradic
#313DC4 #C43186 #C4B831 #31C46E
square
#313DC4 #C43186 #C4B831 #31C46E
split-complementary
#313DC4 #C46E31 #86C431
monochromatic
#191F62 #252E93 #313DC4 #5C66D6 #8D94E2

Accessibility & contrast

On white

8.09
#313DC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#313DC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313DC4
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DC4#FFFFFF#000000##FFFFFF
##313DC41.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C8
Deuteranopia (green-blind)
#0049C2
Tritanopia (blue-blind)
#00627C
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #313dc4;
/* rgb */ color: rgb(49, 61, 196);
/* oklch */ color: oklch(44.8% 0.206 270.9);
Tailwind
colors: {
  custom: {
    50: '#8073d7',
    500: '#313dc4',
    950: '#000000',
  },
}
SCSS
$custom: #313dc4;
$custom-light: #8073d7;
$custom-dark: #000000;
JSON
{
  "hex": "#313dc4",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 196
  },
  "hsl": {
    "h": 235.102,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.44752,
    "c": 0.2064,
    "h": 270.9
  },
  "luminance": 0.07976
}

Semantic roles & 50–950 ramp

primary
#313DC4
secondary
#CDC784
accent
#D645E3
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #313DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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