#31308D#31308D

#31308D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.150 H 276.8°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#31308D
RGBrgb(49, 48, 141)
HSLhsl(241, 49%, 37%)
HSVhsv(241, 66%, 55%)
CMYKcmyk(65.2%, 66%, 0%, 44.7%)
CIE-LABlab(25.83, 30.56, -51.52)
CIE-LCHlch(25.83, 59.90, 300.68°)
OKLaboklab(37.32% 0.0177 -0.1485)
OKLCHoklch(37.32% 0.15 276.8)
XYZxyz(7.1297, 4.6894, 25.7236)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31308D #8C8D30
analogous
#305E8D #31308D #60308D
triadic
#31308D #8D3130 #308D31
tetradic
#31308D #8D305E #8C8D30 #308D60
square
#31308D #8D305E #8C8D30 #308D60
split-complementary
#31308D #8D6030 #5E8D30
monochromatic
#111132 #21205F #31308D #4140BB #6C6BCD

Accessibility & contrast

On white

10.84
#31308D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#31308D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #31308D
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31308D#FFFFFF#000000##FFFFFF
##31308D1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #31308d;
/* rgb */ color: rgb(49, 48, 141);
/* oklch */ color: oklch(37.3% 0.150 276.8);
Tailwind
colors: {
  custom: {
    50: '#7568af',
    500: '#31308d',
    950: '#000000',
  },
}
SCSS
$custom: #31308d;
$custom-light: #7568af;
$custom-dark: #000000;
JSON
{
  "hex": "#31308d",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 141
  },
  "hsl": {
    "h": 240.645,
    "s": 49.206,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37322,
    "c": 0.14954,
    "h": 276.8
  },
  "luminance": 0.0469
}

Semantic roles & 50–950 ramp

primary
#31308D
secondary
#B3B465
accent
#D94FD7
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #31308D

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

Preview Lab → · Contrast checker → · Palette generator →

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