#313C9C#313C9C

#313C9C is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.9% C 0.155 H 272.5°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#313C9C
RGBrgb(49, 60, 156)
HSLhsl(234, 52%, 40%)
HSVhsv(234, 69%, 61%)
CMYKcmyk(68.6%, 61.5%, 0%, 38.8%)
CIE-LABlab(30.12, 28.10, -53.72)
CIE-LCHlch(30.12, 60.63, 297.62°)
OKLaboklab(40.87% 0.0068 -0.1549)
OKLCHoklch(40.87% 0.155 272.5)
XYZxyz(8.8812, 6.2842, 32.1910)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313C9C #9C9131
analogous
#31719C #313C9C #5C319C
triadic
#313C9C #9C313C #3C9C31
tetradic
#313C9C #9C3171 #9C9131 #319C5C
square
#313C9C #9C3171 #9C9131 #319C5C
split-complementary
#313C9C #9C5C31 #719C31
monochromatic
#14183F #222A6D #313C9C #4553C5 #747ED3

Accessibility & contrast

On white

9.30
#313C9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#313C9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313C9C
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313C9C#FFFFFF#000000##FFFFFF
##313C9C1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9F
Deuteranopia (green-blind)
#00429A
Tritanopia (blue-blind)
#005466
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313c9c;
/* rgb */ color: rgb(49, 60, 156);
/* oklch */ color: oklch(40.9% 0.155 272.5);
Tailwind
colors: {
  custom: {
    50: '#7771ba',
    500: '#313c9c',
    950: '#000000',
  },
}
SCSS
$custom: #313c9c;
$custom-light: #7771ba;
$custom-dark: #000000;
JSON
{
  "hex": "#313c9c",
  "rgb": {
    "r": 49,
    "g": 60,
    "b": 156
  },
  "hsl": {
    "h": 233.832,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.40871,
    "c": 0.15502,
    "h": 272.5
  },
  "luminance": 0.06285
}

Semantic roles & 50–950 ramp

primary
#313C9C
secondary
#BBB36D
accent
#CD4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313C9C

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

Preview Lab → · Contrast checker → · Palette generator →

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