#31369B#31369B

#31369B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.7% C 0.161 H 274.2°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#31369B
RGBrgb(49, 54, 155)
HSLhsl(237, 52%, 40%)
HSVhsv(237, 68%, 61%)
CMYKcmyk(68.4%, 65.2%, 0%, 39.2%)
CIE-LABlab(28.53, 31.66, -55.71)
CIE-LCHlch(28.53, 64.07, 299.61°)
OKLaboklab(39.68% 0.0117 -0.1607)
OKLCHoklch(39.68% 0.161 274.2)
XYZxyz(8.5002, 5.6571, 31.6480)
Luminance0.0566 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31369B #9B9631
analogous
#316B9B #31369B #61319B
triadic
#31369B #9B3136 #369B31
tetradic
#31369B #9B316B #9B9631 #319B61
square
#31369B #9B316B #9B9631 #319B61
split-complementary
#31369B #9B6131 #6B9B31
monochromatic
#14163E #22266D #31369B #454BC4 #7378D3

Accessibility & contrast

On white

9.85
#31369B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#31369B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31369B
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31369B#FFFFFF#000000##FFFFFF
##31369B1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#003F99
Tritanopia (blue-blind)
#005063
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #31369b;
/* rgb */ color: rgb(49, 54, 155);
/* oklch */ color: oklch(39.7% 0.161 274.2);
Tailwind
colors: {
  custom: {
    50: '#776db9',
    500: '#31369b',
    950: '#000000',
  },
}
SCSS
$custom: #31369b;
$custom-light: #776db9;
$custom-dark: #000000;
JSON
{
  "hex": "#31369b",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 155
  },
  "hsl": {
    "h": 237.17,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.39676,
    "c": 0.16116,
    "h": 274.2
  },
  "luminance": 0.05658
}

Semantic roles & 50–950 ramp

primary
#31369B
secondary
#BBB76D
accent
#D54CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31369B

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

Preview Lab → · Contrast checker → · Palette generator →

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