#31489C#31489C

#31489C is a dark, vivid blue. Relative luminance 0.077; OKLCH L 43.3% C 0.139 H 268.5°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#31489C
RGBrgb(49, 72, 156)
HSLhsl(227, 52%, 40%)
HSVhsv(227, 69%, 61%)
CMYKcmyk(68.6%, 53.8%, 0%, 38.8%)
CIE-LABlab(33.32, 20.12, -48.52)
CIE-LCHlch(33.32, 52.52, 292.52°)
OKLaboklab(43.27% -0.0037 -0.1394)
OKLCHoklch(43.27% 0.139 268.5)
XYZxyz(9.5827, 7.6871, 32.4248)
Luminance0.0769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31489C #9C8531
analogous
#317D9C #31489C #50319C
triadic
#31489C #9C3148 #489C31
tetradic
#31489C #9C317D #9C8531 #319C50
square
#31489C #9C317D #9C8531 #319C50
split-complementary
#31489C #9C5031 #7D9C31
monochromatic
#141D3F #22336D #31489C #4561C5 #7489D3

Accessibility & contrast

On white

8.28
#31489C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#31489C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31489C
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31489C#FFFFFF#000000##FFFFFF
##31489C1.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F539F
Deuteranopia (green-blind)
#004A9A
Tritanopia (blue-blind)
#005C6B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #31489c;
/* rgb */ color: rgb(49, 72, 156);
/* oklch */ color: oklch(43.3% 0.139 268.5);
Tailwind
colors: {
  custom: {
    50: '#767aba',
    500: '#31489c',
    950: '#000000',
  },
}
SCSS
$custom: #31489c;
$custom-light: #767aba;
$custom-dark: #000000;
JSON
{
  "hex": "#31489c",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 156
  },
  "hsl": {
    "h": 227.103,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43266,
    "c": 0.13947,
    "h": 268.5
  },
  "luminance": 0.07688
}

Semantic roles & 50–950 ramp

primary
#31489C
secondary
#BBAB6D
accent
#BD4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090912
muted
#7B7B81

Preview Lab

Preview with #31489C

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

Preview Lab → · Contrast checker → · Palette generator →

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