#31399E#31399E

#31399E is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.5% C 0.162 H 273.2°. Best body text is #FFFFFF at 9.50:1 contrast (WCAG AA passes).

Color values

HEX#31399E
RGBrgb(49, 57, 158)
HSLhsl(236, 53%, 41%)
HSVhsv(236, 69%, 62%)
CMYKcmyk(69%, 63.9%, 0%, 38%)
CIE-LABlab(29.53, 30.79, -55.89)
CIE-LCHlch(29.53, 63.81, 298.85°)
OKLaboklab(40.49% 0.0091 -0.1613)
OKLCHoklch(40.49% 0.162 273.2)
XYZxyz(8.8992, 6.0470, 33.0393)
Luminance0.0605 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31399E #9E9631
analogous
#316F9E #31399E #5F319E
triadic
#31399E #9E3139 #399E31
tetradic
#31399E #9E316F #9E9631 #319E5F
square
#31399E #9E316F #9E9631 #319E5F
split-complementary
#31399E #9E5F31 #6F9E31
monochromatic
#141741 #23286F #31399E #4650C6 #757CD4

Accessibility & contrast

On white

9.50
#31399E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#31399E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31399E
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31399E#FFFFFF#000000##FFFFFF
##31399E1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#005366
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #31399e;
/* rgb */ color: rgb(49, 57, 158);
/* oklch */ color: oklch(40.5% 0.162 273.2);
Tailwind
colors: {
  custom: {
    50: '#786fbc',
    500: '#31399e',
    950: '#000000',
  },
}
SCSS
$custom: #31399e;
$custom-light: #786fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#31399e",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 158
  },
  "hsl": {
    "h": 235.596,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4049,
    "c": 0.16154,
    "h": 273.2
  },
  "luminance": 0.06048
}

Semantic roles & 50–950 ramp

primary
#31399E
secondary
#BCB76E
accent
#D14CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31399E

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

Preview Lab → · Contrast checker → · Palette generator →

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