#31389A#31389A

#31389A is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.157 H 273.7°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).

Color values

HEX#31389A
RGBrgb(49, 56, 154)
HSLhsl(236, 52%, 40%)
HSVhsv(236, 68%, 60%)
CMYKcmyk(68.2%, 63.6%, 0%, 39.6%)
CIE-LABlab(28.94, 30.00, -54.43)
CIE-LCHlch(28.94, 62.15, 298.86°)
OKLaboklab(39.95% 0.0101 -0.157)
OKLCHoklch(39.95% 0.157 273.7)
XYZxyz(8.5116, 5.8136, 31.2392)
Luminance0.0581 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31389A #9A9331
analogous
#316D9A #31389A #5F319A
triadic
#31389A #9A3138 #389A31
tetradic
#31389A #9A316D #9A9331 #319A5F
square
#31389A #9A316D #9A9331 #319A5F
split-complementary
#31389A #9A5F31 #6D9A31
monochromatic
#13163D #22276C #31389A #454DC4 #7379D2

Accessibility & contrast

On white

9.71
#31389A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#31389A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31389A
9.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31389A#FFFFFF#000000##FFFFFF
##31389A1.009.712.169.71
#FFFFFF9.711.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499D
Deuteranopia (green-blind)
#004098
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #31389a;
/* rgb */ color: rgb(49, 56, 154);
/* oklch */ color: oklch(39.9% 0.157 273.7);
Tailwind
colors: {
  custom: {
    50: '#776eb9',
    500: '#31389a',
    950: '#000000',
  },
}
SCSS
$custom: #31389a;
$custom-light: #776eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#31389a",
  "rgb": {
    "r": 49,
    "g": 56,
    "b": 154
  },
  "hsl": {
    "h": 236,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39948,
    "c": 0.15732,
    "h": 273.7
  },
  "luminance": 0.05814
}

Semantic roles & 50–950 ramp

primary
#31389A
secondary
#BAB56C
accent
#D24DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #31389A

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

Preview Lab → · Contrast checker → · Palette generator →

#31389A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva