#31489E#31489E

#31489E is a dark, vivid blue. Relative luminance 0.078; OKLCH L 43.4% C 0.142 H 268.6°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#31489E
RGBrgb(49, 72, 158)
HSLhsl(227, 53%, 41%)
HSVhsv(227, 69%, 62%)
CMYKcmyk(69%, 54.4%, 0%, 38%)
CIE-LABlab(33.47, 20.86, -49.49)
CIE-LCHlch(33.47, 53.71, 292.86°)
OKLaboklab(43.42% -0.0036 -0.1423)
OKLCHoklch(43.42% 0.142 268.6)
XYZxyz(9.7534, 7.7554, 33.3241)
Luminance0.0776 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31489E #9E8731
analogous
#317F9E #31489E #50319E
triadic
#31489E #9E3148 #489E31
tetradic
#31489E #9E317F #9E8731 #319E50
square
#31489E #9E317F #9E8731 #319E50
split-complementary
#31489E #9E5031 #7F9E31
monochromatic
#141D41 #23336F #31489E #4661C6 #7589D4

Accessibility & contrast

On white

8.23
#31489E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#31489E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31489E
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31489E#FFFFFF#000000##FFFFFF
##31489E1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0954A1
Deuteranopia (green-blind)
#004A9C
Tritanopia (blue-blind)
#005D6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #31489e;
/* rgb */ color: rgb(49, 72, 158);
/* oklch */ color: oklch(43.4% 0.142 268.6);
Tailwind
colors: {
  custom: {
    50: '#767abb',
    500: '#31489e',
    950: '#000000',
  },
}
SCSS
$custom: #31489e;
$custom-light: #767abb;
$custom-dark: #000000;
JSON
{
  "hex": "#31489e",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 158
  },
  "hsl": {
    "h": 227.339,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43422,
    "c": 0.14233,
    "h": 268.6
  },
  "luminance": 0.07756
}

Semantic roles & 50–950 ramp

primary
#31489E
secondary
#BCAC6E
accent
#BE4CDC
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#0A0912
muted
#7C7B81

Preview Lab

Preview with #31489E

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

Preview Lab → · Contrast checker → · Palette generator →

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