#31309F#31309F

#31309F is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.0% C 0.174 H 275.2°. Best body text is #FFFFFF at 10.22:1 contrast (WCAG AA passes).

Color values

HEX#31309F
RGBrgb(49, 48, 159)
HSLhsl(241, 54%, 41%)
HSVhsv(241, 70%, 62%)
CMYKcmyk(69.2%, 69.8%, 0%, 37.6%)
CIE-LABlab(27.49, 36.84, -59.85)
CIE-LCHlch(27.49, 70.28, 301.61°)
OKLaboklab(39.03% 0.0156 -0.1729)
OKLCHoklch(39.03% 0.174 275.2)
XYZxyz(8.5795, 5.2693, 33.3591)
Luminance0.0527 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31309F #9E9F30
analogous
#30669F #31309F #69309F
triadic
#31309F #9F3130 #309F31
tetradic
#31309F #9F3066 #9E9F30 #309F69
square
#31309F #9F3066 #9E9F30 #309F69
split-complementary
#31309F #9F6930 #669F30
monochromatic
#141441 #232270 #31309F #4645C7 #7574D5

Accessibility & contrast

On white

10.22
#31309F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#31309F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31309F
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31309F#FFFFFF#000000##FFFFFF
##31309F1.0010.222.0510.22
#FFFFFF10.221.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003C9D
Tritanopia (blue-blind)
#004E63
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #31309f;
/* rgb */ color: rgb(49, 48, 159);
/* oklch */ color: oklch(39.0% 0.174 275.2);
Tailwind
colors: {
  custom: {
    50: '#7969bc',
    500: '#31309f',
    950: '#000000',
  },
}
SCSS
$custom: #31309f;
$custom-light: #7969bc;
$custom-dark: #000000;
JSON
{
  "hex": "#31309f",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 159
  },
  "hsl": {
    "h": 240.541,
    "s": 53.623,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39032,
    "c": 0.1736,
    "h": 275.2
  },
  "luminance": 0.0527
}

Semantic roles & 50–950 ramp

primary
#31309F
secondary
#BCBD6E
accent
#DD4BDC
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #31309F

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

Preview Lab → · Contrast checker → · Palette generator →

#31309F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva