#31306D#31306D

#31306D is a dark, moderate blue. Relative luminance 0.039; OKLCH L 34.6% C 0.103 H 280.3°. Best body text is #FFFFFF at 11.84:1 contrast (WCAG AA passes).

Color values

HEX#31306D
RGBrgb(49, 48, 109)
HSLhsl(241, 39%, 31%)
HSVhsv(241, 56%, 43%)
CMYKcmyk(55%, 56%, 0%, 57.3%)
CIE-LABlab(23.24, 19.24, -35.51)
CIE-LCHlch(23.24, 40.39, 298.45°)
OKLaboklab(34.6% 0.0184 -0.1014)
OKLCHoklch(34.6% 0.103 280.3)
XYZxyz(5.0830, 3.8707, 14.9443)
Luminance0.0387 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31306D #6C6D30
analogous
#304D6D #31306D #4F306D
triadic
#31306D #6D3130 #306D31
tetradic
#31306D #6D304D #6C6D30 #306D4F
square
#31306D #6D304D #6C6D30 #306D4F
split-complementary
#31306D #6D4F30 #4D6D30
monochromatic
#0B0B18 #1E1D43 #31306D #444397 #605FB8

Accessibility & contrast

On white

11.84
#31306D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#31306D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31306D
11.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31306D#FFFFFF#000000##FFFFFF
##31306D1.0011.841.7711.84
#FFFFFF11.841.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3A6F
Deuteranopia (green-blind)
#06356C
Tritanopia (blue-blind)
#183E49
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #31306d;
/* rgb */ color: rgb(49, 48, 109);
/* oklch */ color: oklch(34.6% 0.103 280.3);
Tailwind
colors: {
  custom: {
    50: '#6e6897',
    500: '#31306d',
    950: '#000000',
  },
}
SCSS
$custom: #31306d;
$custom-light: #6e6897;
$custom-dark: #000000;
JSON
{
  "hex": "#31306d",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 109
  },
  "hsl": {
    "h": 240.984,
    "s": 38.854,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34595,
    "c": 0.1031,
    "h": 280.3
  },
  "luminance": 0.03871
}

Semantic roles & 50–950 ramp

primary
#31306D
secondary
#9D9E5B
accent
#CF59CD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#08060D
muted
#7B7A7E

Preview Lab

Preview with #31306D

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

Preview Lab → · Contrast checker → · Palette generator →

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