#313A88#313A88

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

Color values

HEX#313A88
RGBrgb(49, 58, 136)
HSLhsl(234, 47%, 36%)
HSVhsv(234, 64%, 53%)
CMYKcmyk(64%, 57.4%, 0%, 46.7%)
CIE-LABlab(28.00, 22.14, -44.89)
CIE-LCHlch(28.00, 50.05, 296.25°)
OKLaboklab(38.79% 0.0085 -0.1289)
OKLCHoklch(38.79% 0.129 273.8)
XYZxyz(7.2221, 5.4561, 23.9603)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A88 #887F31
analogous
#316688 #313A88 #543188
triadic
#313A88 #88313A #3A8831
tetradic
#313A88 #883166 #887F31 #318854
square
#313A88 #883166 #887F31 #318854
split-complementary
#313A88 #885431 #668831
monochromatic
#11142E #21275B #313A88 #414DB5 #6A74C9

Accessibility & contrast

On white

10.04
#313A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313A88
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A88#FFFFFF#000000##FFFFFF
##313A881.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #313a88;
/* rgb */ color: rgb(49, 58, 136);
/* oklch */ color: oklch(38.8% 0.129 273.8);
Tailwind
colors: {
  custom: {
    50: '#7370ab',
    500: '#313a88',
    950: '#000000',
  },
}
SCSS
$custom: #313a88;
$custom-light: #7370ab;
$custom-dark: #000000;
JSON
{
  "hex": "#313a88",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 136
  },
  "hsl": {
    "h": 233.793,
    "s": 47.027,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38792,
    "c": 0.12921,
    "h": 273.8
  },
  "luminance": 0.05457
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #313A88

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

Preview Lab → · Contrast checker → · Palette generator →

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