#31337E#31337E

#31337E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.124 H 277.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#31337E
RGBrgb(49, 51, 126)
HSLhsl(238, 44%, 34%)
HSVhsv(238, 61%, 49%)
CMYKcmyk(61.1%, 59.5%, 0%, 50.6%)
CIE-LABlab(25.34, 23.24, -42.94)
CIE-LCHlch(25.34, 48.83, 298.43°)
OKLaboklab(36.57% 0.0155 -0.1233)
OKLCHoklch(36.57% 0.124 277.2)
XYZxyz(6.2151, 4.5265, 20.2808)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31337E #7E7C31
analogous
#315A7E #31337E #56317E
triadic
#31337E #7E3133 #337E31
tetradic
#31337E #7E315A #7E7C31 #317E56
square
#31337E #7E315A #7E7C31 #317E56
split-complementary
#31337E #7E5631 #5A7E31
monochromatic
#0F0F26 #202152 #31337E #4245AA #6668C3

Accessibility & contrast

On white

11.02
#31337E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#31337E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31337E
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31337E#FFFFFF#000000##FFFFFF
##31337E1.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #31337e;
/* rgb */ color: rgb(49, 51, 126);
/* oklch */ color: oklch(36.6% 0.124 277.2);
Tailwind
colors: {
  custom: {
    50: '#716aa4',
    500: '#31337e',
    950: '#000000',
  },
}
SCSS
$custom: #31337e;
$custom-light: #716aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#31337e",
  "rgb": {
    "r": 49,
    "g": 51,
    "b": 126
  },
  "hsl": {
    "h": 238.442,
    "s": 44,
    "l": 34.314
  },
  "oklch": {
    "l": 0.3657,
    "c": 0.12424,
    "h": 277.2
  },
  "luminance": 0.04527
}

Semantic roles & 50–950 ramp

primary
#31337E
secondary
#ABA960
accent
#D054D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31337E

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

Preview Lab → · Contrast checker → · Palette generator →

#31337E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva