#31399B#31399B

#31399B is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.2% C 0.157 H 273.4°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#31399B
RGBrgb(49, 57, 155)
HSLhsl(235, 52%, 40%)
HSVhsv(235, 68%, 61%)
CMYKcmyk(68.4%, 63.2%, 0%, 39.2%)
CIE-LABlab(29.27, 29.71, -54.49)
CIE-LCHlch(29.27, 62.06, 298.60°)
OKLaboklab(40.22% 0.0093 -0.1572)
OKLCHoklch(40.22% 0.157 273.4)
XYZxyz(8.6442, 5.9450, 31.6959)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31399B #9B9331
analogous
#316E9B #31399B #5E319B
triadic
#31399B #9B3139 #399B31
tetradic
#31399B #9B316E #9B9331 #319B5E
square
#31399B #9B316E #9B9331 #319B5E
split-complementary
#31399B #9B5E31 #6E9B31
monochromatic
#14173E #22286D #31399B #454FC4 #737BD3

Accessibility & contrast

On white

9.59
#31399B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#31399B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31399B
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31399B#FFFFFF#000000##FFFFFF
##31399B1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9E
Deuteranopia (green-blind)
#004099
Tritanopia (blue-blind)
#005264
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #31399b;
/* rgb */ color: rgb(49, 57, 155);
/* oklch */ color: oklch(40.2% 0.157 273.4);
Tailwind
colors: {
  custom: {
    50: '#776fb9',
    500: '#31399b',
    950: '#000000',
  },
}
SCSS
$custom: #31399b;
$custom-light: #776fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#31399b",
  "rgb": {
    "r": 49,
    "g": 57,
    "b": 155
  },
  "hsl": {
    "h": 235.472,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.40221,
    "c": 0.15743,
    "h": 273.4
  },
  "luminance": 0.05946
}

Semantic roles & 50–950 ramp

primary
#31399B
secondary
#BBB56D
accent
#D14CDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31399B

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

Preview Lab → · Contrast checker → · Palette generator →

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