#31509D#31509D

#31509D is a mid, vivid blue. Relative luminance 0.088; OKLCH L 45.1% C 0.131 H 265.1°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#31509D
RGBrgb(49, 80, 157)
HSLhsl(223, 52%, 40%)
HSVhsv(223, 69%, 62%)
CMYKcmyk(68.8%, 49%, 0%, 38.4%)
CIE-LABlab(35.64, 15.16, -45.38)
CIE-LCHlch(35.64, 47.84, 288.47°)
OKLaboklab(45.05% -0.0112 -0.1301)
OKLCHoklch(45.05% 0.131 265.1)
XYZxyz(10.2190, 8.8236, 33.0563)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31509D #9D7E31
analogous
#31869D #31509D #48319D
triadic
#31509D #9D3150 #509D31
tetradic
#31509D #9D3186 #9D7E31 #319D48
square
#31509D #9D3186 #9D7E31 #319D48
split-complementary
#31509D #9D4831 #869D31
monochromatic
#142040 #22386E #31509D #466AC5 #7590D4

Accessibility & contrast

On white

7.59
#31509D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31509D
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31509D#FFFFFF#000000##FFFFFF
##31509D1.007.592.767.59
#FFFFFF7.591.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2759A0
Deuteranopia (green-blind)
#0B4F9B
Tritanopia (blue-blind)
#00626F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #31509d;
/* rgb */ color: rgb(49, 80, 157);
/* oklch */ color: oklch(45.1% 0.131 265.1);
Tailwind
colors: {
  custom: {
    50: '#7680ba',
    500: '#31509d',
    950: '#000000',
  },
}
SCSS
$custom: #31509d;
$custom-light: #7680ba;
$custom-dark: #000000;
JSON
{
  "hex": "#31509d",
  "rgb": {
    "r": 49,
    "g": 80,
    "b": 157
  },
  "hsl": {
    "h": 222.778,
    "s": 52.427,
    "l": 40.392
  },
  "oklch": {
    "l": 0.4505,
    "c": 0.13054,
    "h": 265.1
  },
  "luminance": 0.08825
}

Semantic roles & 50–950 ramp

primary
#31509D
secondary
#BCA56E
accent
#B34CDC
background
#F7F7FB
surface
#EEEEF6
border
#C9C9D0
text
#090A12
muted
#7B7C81

Preview Lab

Preview with #31509D

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

Preview Lab → · Contrast checker → · Palette generator →

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