#312098#312098

#312098 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.181 H 278.5°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).

Color values

HEX#312098
RGBrgb(49, 32, 152)
HSLhsl(249, 65%, 36%)
HSVhsv(249, 79%, 60%)
CMYKcmyk(67.8%, 78.9%, 0%, 40.4%)
CIE-LABlab(23.51, 43.65, -62.12)
CIE-LCHlch(23.51, 75.92, 305.10°)
OKLaboklab(35.99% 0.0269 -0.1794)
OKLCHoklch(35.99% 0.181 278.5)
XYZxyz(7.4488, 3.9524, 30.0700)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312098 #879820
analogous
#204B98 #312098 #6D2098
triadic
#312098 #983120 #209831
tetradic
#312098 #98204B #879820 #20986D
square
#312098 #98204B #879820 #20986D
split-complementary
#312098 #986D20 #4B9820
monochromatic
#100B33 #211565 #312098 #412BCB #6A57DC

Accessibility & contrast

On white

11.73
#312098 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#312098 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312098
11.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312098#FFFFFF#000000##FFFFFF
##3120981.0011.731.7911.73
#FFFFFF11.731.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9B
Deuteranopia (green-blind)
#003396
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #312098;
/* rgb */ color: rgb(49, 32, 152);
/* oklch */ color: oklch(36.0% 0.181 278.5);
Tailwind
colors: {
  custom: {
    50: '#785fb8',
    500: '#312098',
    950: '#000000',
  },
}
SCSS
$custom: #312098;
$custom-light: #785fb8;
$custom-dark: #000000;
JSON
{
  "hex": "#312098",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 152
  },
  "hsl": {
    "h": 248.5,
    "s": 65.217,
    "l": 36.078
  },
  "oklch": {
    "l": 0.35994,
    "c": 0.18142,
    "h": 278.5
  },
  "luminance": 0.03953
}

Semantic roles & 50–950 ramp

primary
#312098
secondary
#B0BF54
accent
#E840D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312098

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

Preview Lab → · Contrast checker → · Palette generator →

#312098 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva