#313B9C#313B9C

#313B9C is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.7% C 0.156 H 272.8°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#313B9C
RGBrgb(49, 59, 156)
HSLhsl(234, 52%, 40%)
HSVhsv(234, 69%, 61%)
CMYKcmyk(68.6%, 62.2%, 0%, 38.8%)
CIE-LABlab(29.86, 28.76, -54.14)
CIE-LCHlch(29.86, 61.30, 297.98°)
OKLaboklab(40.68% 0.0076 -0.1561)
OKLCHoklch(40.68% 0.156 272.8)
XYZxyz(8.8293, 6.1804, 32.1737)
Luminance0.0618 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B9C #9C9231
analogous
#31709C #313B9C #5D319C
triadic
#313B9C #9C313B #3B9C31
tetradic
#313B9C #9C3170 #9C9231 #319C5D
square
#313B9C #9C3170 #9C9231 #319C5D
split-complementary
#313B9C #9C5D31 #709C31
monochromatic
#14183F #22296D #313B9C #4551C5 #747DD3

Accessibility & contrast

On white

9.39
#313B9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#313B9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B9C
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B9C#FFFFFF#000000##FFFFFF
##313B9C1.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#005365
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #313b9c;
/* rgb */ color: rgb(49, 59, 156);
/* oklch */ color: oklch(40.7% 0.156 272.8);
Tailwind
colors: {
  custom: {
    50: '#7771ba',
    500: '#313b9c',
    950: '#000000',
  },
}
SCSS
$custom: #313b9c;
$custom-light: #7771ba;
$custom-dark: #000000;
JSON
{
  "hex": "#313b9c",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 156
  },
  "hsl": {
    "h": 234.393,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40682,
    "c": 0.15629,
    "h": 272.8
  },
  "luminance": 0.06181
}

Semantic roles & 50–950 ramp

primary
#313B9C
secondary
#BBB46D
accent
#CE4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313B9C

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

Preview Lab → · Contrast checker → · Palette generator →

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