#313CC9#313CC9

#313CC9 is a mid, highly saturated blue. Relative luminance 0.081; OKLCH L 45.1% C 0.214 H 270.9°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#313CC9
RGBrgb(49, 60, 201)
HSLhsl(236, 61%, 49%)
HSVhsv(236, 76%, 79%)
CMYKcmyk(75.6%, 70.1%, 0%, 21.2%)
CIE-LABlab(34.19, 44.03, -73.80)
CIE-LCHlch(34.19, 85.94, 300.82°)
OKLaboklab(45.08% 0.0033 -0.2136)
OKLCHoklch(45.08% 0.214 270.9)
XYZxyz(13.4215, 8.1003, 56.1032)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313CC9 #C9BE31
analogous
#3188C9 #313CC9 #7231C9
triadic
#313CC9 #C9313C #3CC931
tetradic
#313CC9 #C93188 #C9BE31 #31C972
square
#313CC9 #C93188 #C9BE31 #31C972
split-complementary
#313CC9 #C97231 #88C931
monochromatic
#191F67 #252D98 #313CC9 #5F68D8 #9096E4

Accessibility & contrast

On white

8.01
#313CC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#313CC9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313CC9
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313CC9#FFFFFF#000000##FFFFFF
##313CC91.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CD
Deuteranopia (green-blind)
#0049C6
Tritanopia (blue-blind)
#00637E
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #313cc9;
/* rgb */ color: rgb(49, 60, 201);
/* oklch */ color: oklch(45.1% 0.214 270.9);
Tailwind
colors: {
  custom: {
    50: '#8172db',
    500: '#313cc9',
    950: '#000000',
  },
}
SCSS
$custom: #313cc9;
$custom-light: #8172db;
$custom-dark: #000000;
JSON
{
  "hex": "#313cc9",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 201
  },
  "hsl": {
    "h": 235.658,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45085,
    "c": 0.21366,
    "h": 270.9
  },
  "luminance": 0.08102
}

Semantic roles & 50–950 ramp

primary
#313CC9
secondary
#CFCA87
accent
#D844E4
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #313CC9

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

Preview Lab → · Contrast checker → · Palette generator →

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