#31307E#31307E

#31307E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.0% C 0.128 H 278.3°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#31307E
RGBrgb(49, 48, 126)
HSLhsl(241, 45%, 34%)
HSVhsv(241, 62%, 49%)
CMYKcmyk(61.1%, 61.9%, 0%, 50.6%)
CIE-LABlab(24.55, 25.26, -44.22)
CIE-LCHlch(24.55, 50.92, 299.74°)
OKLaboklab(35.99% 0.0186 -0.127)
OKLCHoklch(35.99% 0.128 278.3)
XYZxyz(6.0883, 4.2728, 20.2385)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31307E #7D7E30
analogous
#30567E #31307E #58307E
triadic
#31307E #7E3130 #307E31
tetradic
#31307E #7E3056 #7D7E30 #307E58
square
#31307E #7E3056 #7D7E30 #307E58
split-complementary
#31307E #7E5830 #567E30
monochromatic
#0F0E25 #201F52 #31307E #4241AA #6664C4

Accessibility & contrast

On white

11.32
#31307E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31307E
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31307E#FFFFFF#000000##FFFFFF
##31307E1.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E81
Deuteranopia (green-blind)
#00377C
Tritanopia (blue-blind)
#004352
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #31307e;
/* rgb */ color: rgb(49, 48, 126);
/* oklch */ color: oklch(36.0% 0.128 278.3);
Tailwind
colors: {
  custom: {
    50: '#7268a4',
    500: '#31307e',
    950: '#000000',
  },
}
SCSS
$custom: #31307e;
$custom-light: #7268a4;
$custom-dark: #000000;
JSON
{
  "hex": "#31307e",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 126
  },
  "hsl": {
    "h": 240.769,
    "s": 44.828,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35987,
    "c": 0.12841,
    "h": 278.3
  },
  "luminance": 0.04273
}

Semantic roles & 50–950 ramp

primary
#31307E
secondary
#AAAB5F
accent
#D553D3
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F

Preview Lab

Preview with #31307E

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

Preview Lab → · Contrast checker → · Palette generator →

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