#31509B#31509B

#31509B is a dark, vivid blue. Relative luminance 0.088; OKLCH L 44.9% C 0.128 H 264.8°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#31509B
RGBrgb(49, 80, 155)
HSLhsl(222, 52%, 40%)
HSVhsv(222, 68%, 61%)
CMYKcmyk(68.4%, 48.4%, 0%, 39.2%)
CIE-LABlab(35.51, 14.41, -44.39)
CIE-LCHlch(35.51, 46.67, 287.98°)
OKLaboklab(44.91% -0.0115 -0.1272)
OKLCHoklch(44.91% 0.128 264.8)
XYZxyz(10.0496, 8.7559, 32.1644)
Luminance0.0876 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31509B #9B7C31
analogous
#31859B #31509B #47319B
triadic
#31509B #9B3150 #509B31
tetradic
#31509B #9B3185 #9B7C31 #319B47
square
#31509B #9B3185 #9B7C31 #319B47
split-complementary
#31509B #9B4731 #859B31
monochromatic
#14203E #22386D #31509B #456AC4 #738FD3

Accessibility & contrast

On white

7.63
#31509B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#31509B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31509B
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31509B#FFFFFF#000000##FFFFFF
##31509B1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29599E
Deuteranopia (green-blind)
#114F99
Tritanopia (blue-blind)
#00616E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #31509b;
/* rgb */ color: rgb(49, 80, 155);
/* oklch */ color: oklch(44.9% 0.128 264.8);
Tailwind
colors: {
  custom: {
    50: '#7580b9',
    500: '#31509b',
    950: '#000000',
  },
}
SCSS
$custom: #31509b;
$custom-light: #7580b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31509b",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 155
  },
  "hsl": {
    "h": 222.453,
    "s": 51.961,
    "l": 40
  },
  "oklch": {
    "l": 0.44906,
    "c": 0.12767,
    "h": 264.8
  },
  "luminance": 0.08757
}

Semantic roles & 50–950 ramp

primary
#31509B
secondary
#BBA46D
accent
#B24CDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #31509B

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

Preview Lab → · Contrast checker → · Palette generator →

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