#313A89#313A89

#313A89 is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.9% C 0.131 H 273.8°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#313A89
RGBrgb(49, 58, 137)
HSLhsl(234, 47%, 36%)
HSVhsv(234, 64%, 54%)
CMYKcmyk(64.2%, 57.7%, 0%, 46.3%)
CIE-LABlab(28.07, 22.50, -45.39)
CIE-LCHlch(28.07, 50.66, 296.37°)
OKLaboklab(38.87% 0.0086 -0.1304)
OKLCHoklch(38.87% 0.131 273.8)
XYZxyz(7.2935, 5.4846, 24.3363)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A89 #898031
analogous
#316689 #313A89 #543189
triadic
#313A89 #89313A #3A8931
tetradic
#313A89 #893166 #898031 #318954
square
#313A89 #893166 #898031 #318954
split-complementary
#313A89 #895431 #668931
monochromatic
#11142F #21275C #313A89 #414DB6 #6B74CA

Accessibility & contrast

On white

10.01
#313A89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#313A89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #313A89
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A89#FFFFFF#000000##FFFFFF
##313A891.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468C
Deuteranopia (green-blind)
#003E87
Tritanopia (blue-blind)
#004D5B
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313a89;
/* rgb */ color: rgb(49, 58, 137);
/* oklch */ color: oklch(38.9% 0.131 273.8);
Tailwind
colors: {
  custom: {
    50: '#7370ac',
    500: '#313a89',
    950: '#000000',
  },
}
SCSS
$custom: #313a89;
$custom-light: #7370ac;
$custom-dark: #000000;
JSON
{
  "hex": "#313a89",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 137
  },
  "hsl": {
    "h": 233.864,
    "s": 47.312,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38874,
    "c": 0.13067,
    "h": 273.8
  },
  "luminance": 0.05485
}

Semantic roles & 50–950 ramp

primary
#313A89
secondary
#B1A964
accent
#C951D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313A89

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

Preview Lab → · Contrast checker → · Palette generator →

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