#313DC9#313DC9

#313DC9 is a mid, highly saturated blue. Relative luminance 0.082; OKLCH L 45.2% C 0.213 H 270.7°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#313DC9
RGBrgb(49, 61, 201)
HSLhsl(235, 61%, 49%)
HSVhsv(235, 76%, 79%)
CMYKcmyk(75.6%, 69.7%, 0%, 21.2%)
CIE-LABlab(34.41, 43.43, -73.44)
CIE-LCHlch(34.41, 85.33, 300.60°)
OKLaboklab(45.24% 0.0028 -0.2126)
OKLCHoklch(45.24% 0.213 270.7)
XYZxyz(13.4744, 8.2060, 56.1208)
Luminance0.0821 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313DC9 #C9BD31
analogous
#3189C9 #313DC9 #7131C9
triadic
#313DC9 #C9313D #3DC931
tetradic
#313DC9 #C93189 #C9BD31 #31C971
square
#313DC9 #C93189 #C9BD31 #31C971
split-complementary
#313DC9 #C97131 #89C931
monochromatic
#191F67 #252E98 #313DC9 #5F69D8 #9097E4

Accessibility & contrast

On white

7.95
#313DC9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313DC9
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313DC9#FFFFFF#000000##FFFFFF
##313DC91.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CD
Deuteranopia (green-blind)
#004AC6
Tritanopia (blue-blind)
#00647E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #313dc9;
/* rgb */ color: rgb(49, 61, 201);
/* oklch */ color: oklch(45.2% 0.213 270.7);
Tailwind
colors: {
  custom: {
    50: '#8173db',
    500: '#313dc9',
    950: '#000000',
  },
}
SCSS
$custom: #313dc9;
$custom-light: #8173db;
$custom-dark: #000000;
JSON
{
  "hex": "#313dc9",
  "rgb": {
    "r": 49,
    "g": 61,
    "b": 201
  },
  "hsl": {
    "h": 235.263,
    "s": 60.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45242,
    "c": 0.21261,
    "h": 270.7
  },
  "luminance": 0.08208
}

Semantic roles & 50–950 ramp

primary
#313DC9
secondary
#CFC987
accent
#D744E4
background
#F8F7FD
surface
#F0EDFB
border
#CBC8D4
text
#0C0815
muted
#7D7B83

Preview Lab

Preview with #313DC9

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

Preview Lab → · Contrast checker → · Palette generator →

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