#313FC4#313FC4

#313FC4 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.1% C 0.204 H 270.6°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#313FC4
RGBrgb(49, 63, 196)
HSLhsl(234, 60%, 48%)
HSVhsv(234, 75%, 77%)
CMYKcmyk(75%, 67.9%, 0%, 23.1%)
CIE-LABlab(34.38, 40.49, -70.57)
CIE-LCHlch(34.38, 81.36, 299.84°)
OKLaboklab(45.08% 0.0023 -0.2042)
OKLCHoklch(45.08% 0.204 270.6)
XYZxyz(13.0045, 8.1921, 53.1097)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313FC4 #C4B631
analogous
#3188C4 #313FC4 #6D31C4
triadic
#313FC4 #C4313F #3FC431
tetradic
#313FC4 #C43188 #C4B631 #31C46D
square
#313FC4 #C43188 #C4B631 #31C46D
split-complementary
#313FC4 #C46D31 #88C431
monochromatic
#192062 #252F93 #313FC4 #5C68D6 #8D95E2

Accessibility & contrast

On white

7.96
#313FC4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#313FC4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313FC4
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313FC4#FFFFFF#000000##FFFFFF
##313FC41.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C8
Deuteranopia (green-blind)
#004AC2
Tritanopia (blue-blind)
#00637C
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #313fc4;
/* rgb */ color: rgb(49, 63, 196);
/* oklch */ color: oklch(45.1% 0.204 270.6);
Tailwind
colors: {
  custom: {
    50: '#8074d7',
    500: '#313fc4',
    950: '#000000',
  },
}
SCSS
$custom: #313fc4;
$custom-light: #8074d7;
$custom-dark: #000000;
JSON
{
  "hex": "#313fc4",
  "rgb": {
    "r": 49,
    "g": 63,
    "b": 196
  },
  "hsl": {
    "h": 234.286,
    "s": 60,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45078,
    "c": 0.20422,
    "h": 270.6
  },
  "luminance": 0.08194
}

Semantic roles & 50–950 ramp

primary
#313FC4
secondary
#CDC684
accent
#D445E3
background
#F8F7FD
surface
#F0EDFA
border
#CBC8D3
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #313FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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