#31307C#31307C

#31307C is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.126 H 278.6°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#31307C
RGBrgb(49, 48, 124)
HSLhsl(241, 44%, 34%)
HSVhsv(241, 61%, 49%)
CMYKcmyk(60.5%, 61.3%, 0%, 51.4%)
CIE-LABlab(24.39, 24.55, -43.22)
CIE-LCHlch(24.39, 49.71, 299.60°)
OKLaboklab(35.82% 0.0187 -0.1241)
OKLCHoklch(35.82% 0.126 278.6)
XYZxyz(5.9605, 4.2217, 19.5656)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31307C #7B7C30
analogous
#30557C #31307C #57307C
triadic
#31307C #7C3130 #307C31
tetradic
#31307C #7C3055 #7B7C30 #307C57
square
#31307C #7C3055 #7B7C30 #307C57
split-complementary
#31307C #7C5730 #557C30
monochromatic
#0E0E24 #201F50 #31307C #4241A8 #6564C3

Accessibility & contrast

On white

11.39
#31307C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#31307C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31307C
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31307C#FFFFFF#000000##FFFFFF
##31307C1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D7F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#014251
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31307c;
/* rgb */ color: rgb(49, 48, 124);
/* oklch */ color: oklch(35.8% 0.126 278.6);
Tailwind
colors: {
  custom: {
    50: '#7168a3',
    500: '#31307c',
    950: '#000000',
  },
}
SCSS
$custom: #31307c;
$custom-light: #7168a3;
$custom-dark: #000000;
JSON
{
  "hex": "#31307c",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 124
  },
  "hsl": {
    "h": 240.789,
    "s": 44.186,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35816,
    "c": 0.12552,
    "h": 278.6
  },
  "luminance": 0.04222
}

Semantic roles & 50–950 ramp

primary
#31307C
secondary
#A9AA5E
accent
#D454D2
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31307C

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

Preview Lab → · Contrast checker → · Palette generator →

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