#31369A#31369A

#31369A is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.6% C 0.160 H 274.2°. Best body text is #FFFFFF at 9.88:1 contrast (WCAG AA passes).

Color values

HEX#31369A
RGBrgb(49, 54, 154)
HSLhsl(237, 52%, 40%)
HSVhsv(237, 68%, 60%)
CMYKcmyk(68.2%, 64.9%, 0%, 39.6%)
CIE-LABlab(28.44, 31.30, -55.24)
CIE-LCHlch(28.44, 63.49, 299.54°)
OKLaboklab(39.59% 0.0117 -0.1594)
OKLCHoklch(39.59% 0.16 274.2)
XYZxyz(8.4166, 5.6236, 31.2075)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31369A #9A9531
analogous
#316A9A #31369A #61319A
triadic
#31369A #9A3136 #369A31
tetradic
#31369A #9A316A #9A9531 #319A61
square
#31369A #9A316A #9A9531 #319A61
split-complementary
#31369A #9A6131 #6A9A31
monochromatic
#13153D #22266C #31369A #454BC4 #7378D2

Accessibility & contrast

On white

9.88
#31369A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#31369A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31369A
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31369A#FFFFFF#000000##FFFFFF
##31369A1.009.882.129.88
#FFFFFF9.881.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31369a;
/* rgb */ color: rgb(49, 54, 154);
/* oklch */ color: oklch(39.6% 0.160 274.2);
Tailwind
colors: {
  custom: {
    50: '#776db9',
    500: '#31369a',
    950: '#000000',
  },
}
SCSS
$custom: #31369a;
$custom-light: #776db9;
$custom-dark: #000000;
JSON
{
  "hex": "#31369a",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 154
  },
  "hsl": {
    "h": 237.143,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.39585,
    "c": 0.15981,
    "h": 274.2
  },
  "luminance": 0.05624
}

Semantic roles & 50–950 ramp

primary
#31369A
secondary
#BAB76C
accent
#D44DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80

Preview Lab

Preview with #31369A

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

Preview Lab → · Contrast checker → · Palette generator →

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