#31369C#31369C

#31369C is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.8% C 0.163 H 274.1°. Best body text is #FFFFFF at 9.82:1 contrast (WCAG AA passes).

Color values

HEX#31369C
RGBrgb(49, 54, 156)
HSLhsl(237, 52%, 40%)
HSVhsv(237, 69%, 61%)
CMYKcmyk(68.6%, 65.4%, 0%, 38.8%)
CIE-LABlab(28.62, 32.01, -56.17)
CIE-LCHlch(28.62, 64.65, 299.68°)
OKLaboklab(39.77% 0.0116 -0.1621)
OKLCHoklch(39.77% 0.163 274.1)
XYZxyz(8.5845, 5.6908, 32.0921)
Luminance0.0569 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31369C #9C9731
analogous
#316C9C #31369C #61319C
triadic
#31369C #9C3136 #369C31
tetradic
#31369C #9C316C #9C9731 #319C61
square
#31369C #9C316C #9C9731 #319C61
split-complementary
#31369C #9C6131 #6C9C31
monochromatic
#14163F #22266D #31369C #454BC5 #7478D3

Accessibility & contrast

On white

9.82
#31369C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#31369C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31369C
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31369C#FFFFFF#000000##FFFFFF
##31369C1.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489F
Deuteranopia (green-blind)
#003F9A
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #31369c;
/* rgb */ color: rgb(49, 54, 156);
/* oklch */ color: oklch(39.8% 0.163 274.1);
Tailwind
colors: {
  custom: {
    50: '#776dba',
    500: '#31369c',
    950: '#000000',
  },
}
SCSS
$custom: #31369c;
$custom-light: #776dba;
$custom-dark: #000000;
JSON
{
  "hex": "#31369c",
  "rgb": {
    "r": 49,
    "g": 54,
    "b": 156
  },
  "hsl": {
    "h": 237.196,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.39768,
    "c": 0.16251,
    "h": 274.1
  },
  "luminance": 0.05692
}

Semantic roles & 50–950 ramp

primary
#31369C
secondary
#BBB86D
accent
#D54CDC
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #31369C

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

Preview Lab → · Contrast checker → · Palette generator →

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