#312297#312297

#312297 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.1% C 0.178 H 278.4°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#312297
RGBrgb(49, 34, 151)
HSLhsl(248, 63%, 36%)
HSVhsv(248, 77%, 59%)
CMYKcmyk(67.5%, 77.5%, 0%, 40.8%)
CIE-LABlab(23.77, 42.29, -61.07)
CIE-LCHlch(23.77, 74.28, 304.70°)
OKLaboklab(36.14% 0.0261 -0.1764)
OKLCHoklch(36.14% 0.178 278.4)
XYZxyz(7.4228, 4.0308, 29.6590)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312297 #889722
analogous
#224E97 #312297 #6C2297
triadic
#312297 #973122 #229731
tetradic
#312297 #97224E #889722 #22976C
square
#312297 #97224E #889722 #22976C
split-complementary
#312297 #976C22 #4E9722
monochromatic
#110C33 #211765 #312297 #412DC9 #6A5ADA

Accessibility & contrast

On white

11.63
#312297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#312297 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312297
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312297#FFFFFF#000000##FFFFFF
##3122971.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312297;
/* rgb */ color: rgb(49, 34, 151);
/* oklch */ color: oklch(36.1% 0.178 278.4);
Tailwind
colors: {
  custom: {
    50: '#7860b7',
    500: '#312297',
    950: '#000000',
  },
}
SCSS
$custom: #312297;
$custom-light: #7860b7;
$custom-dark: #000000;
JSON
{
  "hex": "#312297",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 151
  },
  "hsl": {
    "h": 247.692,
    "s": 63.243,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36144,
    "c": 0.17831,
    "h": 278.4
  },
  "luminance": 0.04031
}

Semantic roles & 50–950 ramp

primary
#312297
secondary
#B1BE57
accent
#E642D1
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312297

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

Preview Lab → · Contrast checker → · Palette generator →

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