#31309A#31309A

#31309A is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.5% C 0.167 H 275.6°. Best body text is #FFFFFF at 10.40:1 contrast (WCAG AA passes).

Color values

HEX#31309A
RGBrgb(49, 48, 154)
HSLhsl(241, 52%, 40%)
HSVhsv(241, 69%, 60%)
CMYKcmyk(68.2%, 68.8%, 0%, 39.6%)
CIE-LABlab(27.02, 35.11, -57.58)
CIE-LCHlch(27.02, 67.44, 301.38°)
OKLaboklab(38.55% 0.0163 -0.1662)
OKLCHoklch(38.55% 0.167 275.6)
XYZxyz(8.1544, 5.0992, 31.1201)
Luminance0.0510 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31309A #999A30
analogous
#30649A #31309A #66309A
triadic
#31309A #9A3130 #309A31
tetradic
#31309A #9A3064 #999A30 #309A66
square
#31309A #9A3064 #999A30 #309A66
split-complementary
#31309A #9A6630 #649A30
monochromatic
#13133D #22216B #31309A #4443C4 #7272D3

Accessibility & contrast

On white

10.40
#31309A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#31309A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31309A
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31309A#FFFFFF#000000##FFFFFF
##31309A1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459D
Deuteranopia (green-blind)
#003B98
Tritanopia (blue-blind)
#004C61
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #31309a;
/* rgb */ color: rgb(49, 48, 154);
/* oklch */ color: oklch(38.5% 0.167 275.6);
Tailwind
colors: {
  custom: {
    50: '#7769b9',
    500: '#31309a',
    950: '#000000',
  },
}
SCSS
$custom: #31309a;
$custom-light: #7769b9;
$custom-dark: #000000;
JSON
{
  "hex": "#31309a",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 154
  },
  "hsl": {
    "h": 240.566,
    "s": 52.475,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38547,
    "c": 0.16704,
    "h": 275.6
  },
  "luminance": 0.051
}

Semantic roles & 50–950 ramp

primary
#31309A
secondary
#BABB6B
accent
#DC4CDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #31309A

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

Preview Lab → · Contrast checker → · Palette generator →

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