#31509A#31509A

#31509A is a dark, vivid blue. Relative luminance 0.087; OKLCH L 44.8% C 0.126 H 264.7°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#31509A
RGBrgb(49, 80, 154)
HSLhsl(222, 52%, 40%)
HSVhsv(222, 68%, 60%)
CMYKcmyk(68.2%, 48.1%, 0%, 39.6%)
CIE-LABlab(35.44, 14.03, -43.89)
CIE-LCHlch(35.44, 46.08, 287.73°)
OKLaboklab(44.83% -0.0116 -0.1257)
OKLCHoklch(44.83% 0.126 264.7)
XYZxyz(9.9660, 8.7224, 31.7240)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31509A #9A7B31
analogous
#31849A #31509A #47319A
triadic
#31509A #9A3150 #509A31
tetradic
#31509A #9A3184 #9A7B31 #319A47
square
#31509A #9A3184 #9A7B31 #319A47
split-complementary
#31509A #9A4731 #849A31
monochromatic
#13203D #22386C #31509A #456AC4 #738FD2

Accessibility & contrast

On white

7.65
#31509A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#31509A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31509A
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31509A#FFFFFF#000000##FFFFFF
##31509A1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A589D
Deuteranopia (green-blind)
#134F98
Tritanopia (blue-blind)
#00616D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #31509a;
/* rgb */ color: rgb(49, 80, 154);
/* oklch */ color: oklch(44.8% 0.126 264.7);
Tailwind
colors: {
  custom: {
    50: '#7580b8',
    500: '#31509a',
    950: '#000000',
  },
}
SCSS
$custom: #31509a;
$custom-light: #7580b8;
$custom-dark: #000000;
JSON
{
  "hex": "#31509a",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 154
  },
  "hsl": {
    "h": 222.286,
    "s": 51.724,
    "l": 39.804
  },
  "oklch": {
    "l": 0.44834,
    "c": 0.12622,
    "h": 264.7
  },
  "luminance": 0.08723
}

Semantic roles & 50–950 ramp

primary
#31509A
secondary
#BAA36C
accent
#B14DDB
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A11
muted
#7B7C80

Preview Lab

Preview with #31509A

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

Preview Lab → · Contrast checker → · Palette generator →

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