#31308E#31308E

#31308E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.4% C 0.151 H 276.7°. Best body text is #FFFFFF at 10.80:1 contrast (WCAG AA passes).

Color values

HEX#31308E
RGBrgb(49, 48, 142)
HSLhsl(241, 49%, 37%)
HSVhsv(241, 66%, 56%)
CMYKcmyk(65.5%, 66.2%, 0%, 44.3%)
CIE-LABlab(25.92, 30.92, -51.99)
CIE-LCHlch(25.92, 60.49, 300.74°)
OKLaboklab(37.41% 0.0176 -0.1499)
OKLCHoklch(37.41% 0.151 276.7)
XYZxyz(7.2045, 4.7193, 26.1172)
Luminance0.0472 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#31308E #8D8E30
analogous
#305E8E #31308E #60308E
triadic
#31308E #8E3130 #308E31
tetradic
#31308E #8E305E #8D8E30 #308E60
square
#31308E #8E305E #8D8E30 #308E60
split-complementary
#31308E #8E6030 #5E8E30
monochromatic
#111133 #212160 #31308E #413FBC #6C6BCD

Accessibility & contrast

On white

10.80
#31308E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #31308E
10.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##31308E#FFFFFF#000000##FFFFFF
##31308E1.0010.801.9410.80
#FFFFFF10.801.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #31308e;
/* rgb */ color: rgb(49, 48, 142);
/* oklch */ color: oklch(37.4% 0.151 276.7);
Tailwind
colors: {
  custom: {
    50: '#7569b0',
    500: '#31308e',
    950: '#000000',
  },
}
SCSS
$custom: #31308e;
$custom-light: #7569b0;
$custom-dark: #000000;
JSON
{
  "hex": "#31308e",
  "rgb": {
    "r": 49,
    "g": 48,
    "b": 142
  },
  "hsl": {
    "h": 240.638,
    "s": 49.474,
    "l": 37.255
  },
  "oklch": {
    "l": 0.37414,
    "c": 0.15091,
    "h": 276.7
  },
  "luminance": 0.0472
}

Semantic roles & 50–950 ramp

primary
#31308E
secondary
#B4B465
accent
#D94FD8
background
#F7F6FA
surface
#EEEBF5
border
#C9C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #31308E

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

Preview Lab → · Contrast checker → · Palette generator →

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