#31489B#31489B

#31489B is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.2% C 0.138 H 268.4°. Best body text is #FFFFFF at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#31489B
RGBrgb(49, 72, 155)
HSLhsl(227, 52%, 40%)
HSVhsv(227, 68%, 61%)
CMYKcmyk(68.4%, 53.5%, 0%, 39.2%)
CIE-LABlab(33.25, 19.74, -48.03)
CIE-LCHlch(33.25, 51.93, 292.34°)
OKLaboklab(43.19% -0.0038 -0.138)
OKLCHoklch(43.19% 0.138 268.4)
XYZxyz(9.4984, 7.6534, 31.9807)
Luminance0.0765 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31489B #9B8431
analogous
#317D9B #31489B #4F319B
triadic
#31489B #9B3148 #489B31
tetradic
#31489B #9B317D #9B8431 #319B4F
square
#31489B #9B317D #9B8431 #319B4F
split-complementary
#31489B #9B4F31 #7D9B31
monochromatic
#141D3E #22326D #31489B #4561C4 #7388D3

Accessibility & contrast

On white

8.30
#31489B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#31489B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31489B
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31489B#FFFFFF#000000##FFFFFF
##31489B1.008.302.538.30
#FFFFFF8.301.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11539E
Deuteranopia (green-blind)
#004A99
Tritanopia (blue-blind)
#005C6A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #31489b;
/* rgb */ color: rgb(49, 72, 155);
/* oklch */ color: oklch(43.2% 0.138 268.4);
Tailwind
colors: {
  custom: {
    50: '#767ab9',
    500: '#31489b',
    950: '#000000',
  },
}
SCSS
$custom: #31489b;
$custom-light: #767ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#31489b",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 155
  },
  "hsl": {
    "h": 226.981,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.43188,
    "c": 0.13804,
    "h": 268.4
  },
  "luminance": 0.07654
}

Semantic roles & 50–950 ramp

primary
#31489B
secondary
#BBAA6D
accent
#BC4CDB
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090911
muted
#7B7B80

Preview Lab

Preview with #31489B

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

Preview Lab → · Contrast checker → · Palette generator →

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