#313B8F#313B8F

#313B8F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.6% C 0.138 H 273.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#313B8F
RGBrgb(49, 59, 143)
HSLhsl(234, 49%, 38%)
HSVhsv(234, 66%, 56%)
CMYKcmyk(65.7%, 58.7%, 0%, 43.9%)
CIE-LABlab(28.81, 24.02, -47.90)
CIE-LCHlch(28.81, 53.59, 296.63°)
OKLaboklab(39.57% 0.0077 -0.1378)
OKLCHoklch(39.57% 0.138 273.2)
XYZxyz(7.7869, 5.7634, 26.6834)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B8F #8F8531
analogous
#316A8F #313B8F #56318F
triadic
#313B8F #8F313B #3B8F31
tetradic
#313B8F #8F316A #8F8531 #318F56
square
#313B8F #8F316A #8F8531 #318F56
split-complementary
#313B8F #8F5631 #6A8F31
monochromatic
#121534 #212861 #313B8F #414EBD #6D78CD

Accessibility & contrast

On white

9.75
#313B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#313B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B8F
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B8F#FFFFFF#000000##FFFFFF
##313B8F1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#004F5F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #313b8f;
/* rgb */ color: rgb(49, 59, 143);
/* oklch */ color: oklch(39.6% 0.138 273.2);
Tailwind
colors: {
  custom: {
    50: '#7470b0',
    500: '#313b8f',
    950: '#000000',
  },
}
SCSS
$custom: #313b8f;
$custom-light: #7470b0;
$custom-dark: #000000;
JSON
{
  "hex": "#313b8f",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 143
  },
  "hsl": {
    "h": 233.617,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.39569,
    "c": 0.138,
    "h": 273.2
  },
  "luminance": 0.05764
}

Semantic roles & 50–950 ramp

primary
#313B8F
secondary
#B5AC67
accent
#CA4FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80

Preview Lab

Preview with #313B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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