#313B78#313B78

#313B78 is a dark, moderate blue. Relative luminance 0.051; OKLCH L 37.8% C 0.104 H 273.4°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#313B78
RGBrgb(49, 59, 120)
HSLhsl(232, 42%, 33%)
HSVhsv(232, 59%, 47%)
CMYKcmyk(59.2%, 50.8%, 0%, 52.9%)
CIE-LABlab(27.12, 15.62, -36.29)
CIE-LCHlch(27.12, 39.51, 293.29°)
OKLaboklab(37.76% 0.0062 -0.1036)
OKLCHoklch(37.76% 0.104 273.4)
XYZxyz(6.2196, 5.1365, 18.4294)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B78 #786E31
analogous
#315E78 #313B78 #4A3178
triadic
#313B78 #78313B #3B7831
tetradic
#313B78 #78315E #786E31 #31784A
square
#313B78 #78315E #786E31 #31784A
split-complementary
#313B78 #784A31 #5E7831
monochromatic
#0E1021 #1F264D #313B78 #4350A3 #6471C0

Accessibility & contrast

On white

10.36
#313B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#313B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B78
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B78#FFFFFF#000000##FFFFFF
##313B781.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D437A
Deuteranopia (green-blind)
#123D77
Tritanopia (blue-blind)
#054953
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313b78;
/* rgb */ color: rgb(49, 59, 120);
/* oklch */ color: oklch(37.8% 0.104 273.4);
Tailwind
colors: {
  custom: {
    50: '#70709f',
    500: '#313b78',
    950: '#000000',
  },
}
SCSS
$custom: #313b78;
$custom-light: #70709f;
$custom-dark: #000000;
JSON
{
  "hex": "#313b78",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 120
  },
  "hsl": {
    "h": 231.549,
    "s": 42.012,
    "l": 33.137
  },
  "oklch": {
    "l": 0.37764,
    "c": 0.10379,
    "h": 273.4
  },
  "luminance": 0.05137
}

Semantic roles & 50–950 ramp

primary
#313B78
secondary
#A79D5E
accent
#C056D2
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313B78

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

Preview Lab → · Contrast checker → · Palette generator →

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