#31439B#31439B

#31439B is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.2% C 0.145 H 270.3°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#31439B
RGBrgb(49, 67, 155)
HSLhsl(230, 52%, 40%)
HSVhsv(230, 68%, 61%)
CMYKcmyk(68.4%, 56.8%, 0%, 39.2%)
CIE-LABlab(31.88, 23.09, -50.25)
CIE-LCHlch(31.88, 55.30, 294.68°)
OKLaboklab(42.16% 0.0007 -0.1446)
OKLCHoklch(42.16% 0.145 270.3)
XYZxyz(9.1882, 7.0330, 31.8773)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31439B #9B8931
analogous
#31789B #31439B #54319B
triadic
#31439B #9B3143 #439B31
tetradic
#31439B #9B3178 #9B8931 #319B54
square
#31439B #9B3178 #9B8931 #319B54
split-complementary
#31439B #9B5431 #789B31
monochromatic
#141B3E #222F6D #31439B #455BC4 #7384D3

Accessibility & contrast

On white

8.73
#31439B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#31439B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31439B
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31439B#FFFFFF#000000##FFFFFF
##31439B1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00509E
Deuteranopia (green-blind)
#004699
Tritanopia (blue-blind)
#005868
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #31439b;
/* rgb */ color: rgb(49, 67, 155);
/* oklch */ color: oklch(42.2% 0.145 270.3);
Tailwind
colors: {
  custom: {
    50: '#7676b9',
    500: '#31439b',
    950: '#000000',
  },
}
SCSS
$custom: #31439b;
$custom-light: #7676b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31439b",
  "rgb": {
    "r": 49,
    "g": 67,
    "b": 155
  },
  "hsl": {
    "h": 229.811,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.42158,
    "c": 0.14458,
    "h": 270.3
  },
  "luminance": 0.07034
}

Semantic roles & 50–950 ramp

primary
#31439B
secondary
#BBAE6D
accent
#C34CDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0811
muted
#7C7B80

Preview Lab

Preview with #31439B

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

Preview Lab → · Contrast checker → · Palette generator →

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