#31307D#31307D

#31307D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.9% C 0.127 H 278.5°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#31307D
RGBrgb(49, 48, 125)
HSLhsl(241, 45%, 34%)
HSVhsv(241, 62%, 49%)
CMYKcmyk(60.8%, 61.6%, 0%, 51%)
CIE-LABlab(24.47, 24.90, -43.72)
CIE-LCHlch(24.47, 50.32, 299.67°)
OKLaboklab(35.9% 0.0187 -0.1256)
OKLCHoklch(35.9% 0.127 278.5)
XYZxyz(6.0241, 4.2471, 19.9004)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31307D #7C7D30
analogous
#30567D #31307D #58307D
triadic
#31307D #7D3130 #307D31
tetradic
#31307D #7D3056 #7C7D30 #307D58
square
#31307D #7D3056 #7C7D30 #307D58
split-complementary
#31307D #7D5830 #567D30
monochromatic
#0E0E25 #201F51 #31307D #4241A9 #6564C3

Accessibility & contrast

On white

11.35
#31307D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#31307D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31307D
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31307D#FFFFFF#000000##FFFFFF
##31307D1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#00377B
Tritanopia (blue-blind)
#004351
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31307d;
/* rgb */ color: rgb(49, 48, 125);
/* oklch */ color: oklch(35.9% 0.127 278.5);
Tailwind
colors: {
  custom: {
    50: '#7168a3',
    500: '#31307d',
    950: '#000000',
  },
}
SCSS
$custom: #31307d;
$custom-light: #7168a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31307d",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 125
  },
  "hsl": {
    "h": 240.779,
    "s": 44.509,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35901,
    "c": 0.12697,
    "h": 278.5
  },
  "luminance": 0.04248
}

Semantic roles & 50–950 ramp

primary
#31307D
secondary
#AAAB5E
accent
#D454D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31307D

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

Preview Lab → · Contrast checker → · Palette generator →

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