#31489F#31489F

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

Color values

HEX#31489F
RGBrgb(49, 72, 159)
HSLhsl(227, 53%, 41%)
HSVhsv(227, 69%, 62%)
CMYKcmyk(69.2%, 54.7%, 0%, 37.6%)
CIE-LABlab(33.54, 21.23, -49.98)
CIE-LCHlch(33.54, 54.30, 293.02°)
OKLaboklab(43.5% -0.0035 -0.1437)
OKLCHoklch(43.5% 0.144 268.6)
XYZxyz(9.8398, 7.7899, 33.7792)
Luminance0.0779 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31489F #9F8831
analogous
#317F9F #31489F #51319F
triadic
#31489F #9F3148 #489F31
tetradic
#31489F #9F317F #9F8831 #319F51
square
#31489F #9F317F #9F8831 #319F51
split-complementary
#31489F #9F5131 #7F9F31
monochromatic
#141E41 #233370 #31489F #4762C6 #768AD5

Accessibility & contrast

On white

8.21
#31489F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#31489F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31489F
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31489F#FFFFFF#000000##FFFFFF
##31489F1.008.212.568.21
#FFFFFF8.211.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0654A2
Deuteranopia (green-blind)
#004A9D
Tritanopia (blue-blind)
#005D6C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #31489f;
/* rgb */ color: rgb(49, 72, 159);
/* oklch */ color: oklch(43.5% 0.144 268.6);
Tailwind
colors: {
  custom: {
    50: '#777abc',
    500: '#31489f',
    950: '#000000',
  },
}
SCSS
$custom: #31489f;
$custom-light: #777abc;
$custom-dark: #000000;
JSON
{
  "hex": "#31489f",
  "rgb": {
    "r": 49,
    "g": 72,
    "b": 159
  },
  "hsl": {
    "h": 227.455,
    "s": 52.885,
    "l": 40.784
  },
  "oklch": {
    "l": 0.435,
    "c": 0.14375,
    "h": 268.6
  },
  "luminance": 0.07791
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #31489F

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

Preview Lab → · Contrast checker → · Palette generator →

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