#31509C#31509C

#31509C is a dark, vivid blue. Relative luminance 0.088; OKLCH L 45.0% C 0.129 H 265.0°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#31509C
RGBrgb(49, 80, 156)
HSLhsl(223, 52%, 40%)
HSVhsv(223, 69%, 61%)
CMYKcmyk(68.6%, 48.7%, 0%, 38.8%)
CIE-LABlab(35.58, 14.78, -44.89)
CIE-LCHlch(35.58, 47.26, 288.23°)
OKLaboklab(44.98% -0.0113 -0.1286)
OKLCHoklch(44.98% 0.129 265)
XYZxyz(10.1339, 8.7896, 32.6085)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31509C #9C7D31
analogous
#31859C #31509C #48319C
triadic
#31509C #9C3150 #509C31
tetradic
#31509C #9C3185 #9C7D31 #319C48
square
#31509C #9C3185 #9C7D31 #319C48
split-complementary
#31509C #9C4831 #859C31
monochromatic
#14203F #22386D #31509C #456AC5 #7490D3

Accessibility & contrast

On white

7.61
#31509C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#31509C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31509C
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31509C#FFFFFF#000000##FFFFFF
##31509C1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28599F
Deuteranopia (green-blind)
#0E4F9A
Tritanopia (blue-blind)
#00626E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #31509c;
/* rgb */ color: rgb(49, 80, 156);
/* oklch */ color: oklch(45.0% 0.129 265.0);
Tailwind
colors: {
  custom: {
    50: '#7680ba',
    500: '#31509c',
    950: '#000000',
  },
}
SCSS
$custom: #31509c;
$custom-light: #7680ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31509c",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 156
  },
  "hsl": {
    "h": 222.617,
    "s": 52.195,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44977,
    "c": 0.12911,
    "h": 265
  },
  "luminance": 0.08791
}

Semantic roles & 50–950 ramp

primary
#31509C
secondary
#BBA56D
accent
#B24CDC
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #31509C

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

Preview Lab → · Contrast checker → · Palette generator →

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