#313B76#313B76

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

Color values

HEX#313B76
RGBrgb(49, 59, 118)
HSLhsl(231, 41%, 33%)
HSVhsv(231, 58%, 46%)
CMYKcmyk(58.5%, 50%, 0%, 53.7%)
CIE-LABlab(26.99, 14.90, -35.24)
CIE-LCHlch(26.99, 38.26, 292.92°)
OKLaboklab(37.62% 0.0059 -0.1005)
OKLCHoklch(37.62% 0.101 273.4)
XYZxyz(6.0995, 5.0885, 17.7968)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B76 #766C31
analogous
#315E76 #313B76 #493176
triadic
#313B76 #76313B #3B7631
tetradic
#313B76 #76315E #766C31 #317649
square
#313B76 #76315E #766C31 #317649
split-complementary
#313B76 #764931 #5E7631
monochromatic
#0D1020 #1F254B #313B76 #4351A1 #6370BE

Accessibility & contrast

On white

10.41
#313B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#313B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B76
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B76#FFFFFF#000000##FFFFFF
##313B761.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F4378
Deuteranopia (green-blind)
#153D75
Tritanopia (blue-blind)
#094853
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #313b76;
/* rgb */ color: rgb(49, 59, 118);
/* oklch */ color: oklch(37.6% 0.101 273.4);
Tailwind
colors: {
  custom: {
    50: '#6f709e',
    500: '#313b76',
    950: '#000000',
  },
}
SCSS
$custom: #313b76;
$custom-light: #6f709e;
$custom-dark: #000000;
JSON
{
  "hex": "#313b76",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 118
  },
  "hsl": {
    "h": 231.304,
    "s": 41.317,
    "l": 32.745
  },
  "oklch": {
    "l": 0.37619,
    "c": 0.1007,
    "h": 273.4
  },
  "luminance": 0.05089
}

Semantic roles & 50–950 ramp

primary
#313B76
secondary
#A69B5D
accent
#BF57D1
background
#F7F6F9
surface
#EDECF2
border
#C8C7CC
text
#08070E
muted
#7B7A7E

Preview Lab

Preview with #313B76

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

Preview Lab → · Contrast checker → · Palette generator →

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