#312899#312899

#312899 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.2% C 0.175 H 277.2°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#312899
RGBrgb(49, 40, 153)
HSLhsl(245, 59%, 38%)
HSVhsv(245, 74%, 60%)
CMYKcmyk(68%, 73.9%, 0%, 40%)
CIE-LABlab(25.17, 39.59, -60.00)
CIE-LCHlch(25.17, 71.88, 303.42°)
OKLaboklab(37.19% 0.0219 -0.1733)
OKLCHoklch(37.19% 0.175 277.2)
XYZxyz(7.7733, 4.4698, 30.5839)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312899 #909928
analogous
#285799 #312899 #6A2899
triadic
#312899 #993128 #289931
tetradic
#312899 #992857 #909928 #28996A
square
#312899 #992857 #909928 #28996A
split-complementary
#312899 #996A28 #579928
monochromatic
#120F38 #211B68 #312899 #4135CA #6E65D7

Accessibility & contrast

On white

11.09
#312899 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#312899 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312899
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312899#FFFFFF#000000##FFFFFF
##3128991.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409C
Deuteranopia (green-blind)
#003797
Tritanopia (blue-blind)
#00485E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #312899;
/* rgb */ color: rgb(49, 40, 153);
/* oklch */ color: oklch(37.2% 0.175 277.2);
Tailwind
colors: {
  custom: {
    50: '#7864b8',
    500: '#312899',
    950: '#000000',
  },
}
SCSS
$custom: #312899;
$custom-light: #7864b8;
$custom-dark: #000000;
JSON
{
  "hex": "#312899",
  "rgb": {
    "r": 49,
    "g": 40,
    "b": 153
  },
  "hsl": {
    "h": 244.779,
    "s": 58.549,
    "l": 37.843
  },
  "oklch": {
    "l": 0.37192,
    "c": 0.1747,
    "h": 277.2
  },
  "luminance": 0.0447
}

Semantic roles & 50–950 ramp

primary
#312899
secondary
#B5BD60
accent
#E246D5
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0511
muted
#7C7A80

Preview Lab

Preview with #312899

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

Preview Lab → · Contrast checker → · Palette generator →

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