#313B84#313B84

#313B84 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.7% C 0.122 H 273.4°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#313B84
RGBrgb(49, 59, 132)
HSLhsl(233, 46%, 35%)
HSVhsv(233, 63%, 52%)
CMYKcmyk(62.9%, 55.3%, 0%, 48.2%)
CIE-LABlab(27.97, 20.00, -42.45)
CIE-LCHlch(27.97, 46.92, 295.23°)
OKLaboklab(38.68% 0.0073 -0.1217)
OKLCHoklch(38.68% 0.122 273.4)
XYZxyz(6.9941, 5.4463, 22.5080)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313B84 #847A31
analogous
#316484 #313B84 #503184
triadic
#313B84 #84313B #3B8431
tetradic
#313B84 #843164 #847A31 #318450
square
#313B84 #843164 #847A31 #318450
split-complementary
#313B84 #845031 #648431
monochromatic
#10132B #202757 #313B84 #424FB1 #6874C7

Accessibility & contrast

On white

10.05
#313B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#313B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313B84
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313B84#FFFFFF#000000##FFFFFF
##313B841.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B4687
Deuteranopia (green-blind)
#003F82
Tritanopia (blue-blind)
#004C59
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313b84;
/* rgb */ color: rgb(49, 59, 132);
/* oklch */ color: oklch(38.7% 0.122 273.4);
Tailwind
colors: {
  custom: {
    50: '#7270a8',
    500: '#313b84',
    950: '#000000',
  },
}
SCSS
$custom: #313b84;
$custom-light: #7270a8;
$custom-dark: #000000;
JSON
{
  "hex": "#313b84",
  "rgb": {
    "r": 49,
    "g": 59,
    "b": 132
  },
  "hsl": {
    "h": 232.771,
    "s": 45.856,
    "l": 35.49
  },
  "oklch": {
    "l": 0.38677,
    "c": 0.12195,
    "h": 273.4
  },
  "luminance": 0.05447
}

Semantic roles & 50–950 ramp

primary
#313B84
secondary
#AEA562
accent
#C652D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #313B84

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

Preview Lab → · Contrast checker → · Palette generator →

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