#313A8A#313A8A

#313A8A is a dark, vivid blue. Relative luminance 0.055; OKLCH L 39.0% C 0.132 H 273.7°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#313A8A
RGBrgb(49, 58, 138)
HSLhsl(234, 48%, 37%)
HSVhsv(234, 64%, 54%)
CMYKcmyk(64.5%, 58%, 0%, 45.9%)
CIE-LABlab(28.15, 22.87, -45.88)
CIE-LCHlch(28.15, 51.26, 296.49°)
OKLaboklab(38.96% 0.0086 -0.1318)
OKLCHoklch(38.96% 0.132 273.7)
XYZxyz(7.3656, 5.5134, 24.7159)
Luminance0.0551 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#313A8A #8A8131
analogous
#31678A #313A8A #55318A
triadic
#313A8A #8A313A #3A8A31
tetradic
#313A8A #8A3167 #8A8131 #318A55
square
#313A8A #8A3167 #8A8131 #318A55
split-complementary
#313A8A #8A5531 #678A31
monochromatic
#111430 #21275D #313A8A #414DB7 #6B75CA

Accessibility & contrast

On white

9.99
#313A8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #313A8A
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##313A8A#FFFFFF#000000##FFFFFF
##313A8A1.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468D
Deuteranopia (green-blind)
#003F88
Tritanopia (blue-blind)
#004D5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #313a8a;
/* rgb */ color: rgb(49, 58, 138);
/* oklch */ color: oklch(39.0% 0.132 273.7);
Tailwind
colors: {
  custom: {
    50: '#7370ad',
    500: '#313a8a',
    950: '#000000',
  },
}
SCSS
$custom: #313a8a;
$custom-light: #7370ad;
$custom-dark: #000000;
JSON
{
  "hex": "#313a8a",
  "rgb": {
    "r": 49,
    "g": 58,
    "b": 138
  },
  "hsl": {
    "h": 233.933,
    "s": 47.594,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38956,
    "c": 0.13213,
    "h": 273.7
  },
  "luminance": 0.05514
}

Semantic roles & 50–950 ramp

primary
#313A8A
secondary
#B2AA65
accent
#CA51D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #313A8A

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

Preview Lab → · Contrast checker → · Palette generator →

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