#313B9F#313B9F

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

Color values

HEX#313B9F
RGBrgb(49, 59, 159)
HSLhsl(235, 53%, 41%)
HSVhsv(235, 69%, 62%)
CMYKcmyk(69.2%, 62.9%, 0%, 37.6%)
CIE-LABlab(30.12, 29.85, -55.55)
CIE-LCHlch(30.12, 63.06, 298.25°)
OKLaboklab(40.95% 0.0075 -0.1602)
OKLCHoklch(40.95% 0.16 272.7)
XYZxyz(9.0865, 6.2832, 33.5281)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B9F #9F9531
analogous
#31729F #313B9F #5E319F
triadic
#313B9F #9F313B #3B9F31
tetradic
#313B9F #9F3172 #9F9531 #319F5E
square
#313B9F #9F3172 #9F9531 #319F5E
split-complementary
#313B9F #9F5E31 #729F31
monochromatic
#141841 #232A70 #313B9F #4753C6 #767ED5

Accessibility & contrast

On white

9.31
#313B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313B9F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B9F#FFFFFF#000000##FFFFFF
##313B9F1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #313b9f;
/* rgb */ color: rgb(49, 59, 159);
/* oklch */ color: oklch(40.9% 0.160 272.7);
Tailwind
colors: {
  custom: {
    50: '#7871bc',
    500: '#313b9f',
    950: '#000000',
  },
}
SCSS
$custom: #313b9f;
$custom-light: #7871bc;
$custom-dark: #000000;
JSON
{
  "hex": "#313b9f",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 159
  },
  "hsl": {
    "h": 234.545,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40947,
    "c": 0.16041,
    "h": 272.7
  },
  "luminance": 0.06284
}

Semantic roles & 50–950 ramp

primary
#313B9F
secondary
#BDB66F
accent
#CF4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #313B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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