#312286#312286

#312286 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.4% C 0.157 H 281.1°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#312286
RGBrgb(49, 34, 134)
HSLhsl(249, 60%, 33%)
HSVhsv(249, 75%, 53%)
CMYKcmyk(63.4%, 74.6%, 0%, 47.5%)
CIE-LABlab(22.01, 36.80, -53.42)
CIE-LCHlch(22.01, 64.86, 304.56°)
OKLaboklab(34.37% 0.0301 -0.154)
OKLCHoklch(34.37% 0.157 281.1)
XYZxyz(6.1404, 3.5178, 22.9051)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312286 #778622
analogous
#224586 #312286 #632286
triadic
#312286 #863122 #228631
tetradic
#312286 #862245 #778622 #228663
square
#312286 #862245 #778622 #228663
split-complementary
#312286 #866322 #458622
monochromatic
#0D0924 #1F1655 #312286 #432EB7 #6350D3

Accessibility & contrast

On white

12.33
#312286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#312286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312286
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312286#FFFFFF#000000##FFFFFF
##3122861.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003889
Deuteranopia (green-blind)
#003184
Tritanopia (blue-blind)
#003E52
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #312286;
/* rgb */ color: rgb(49, 34, 134);
/* oklch */ color: oklch(34.4% 0.157 281.1);
Tailwind
colors: {
  custom: {
    50: '#745faa',
    500: '#312286',
    950: '#000000',
  },
}
SCSS
$custom: #312286;
$custom-light: #745faa;
$custom-dark: #000000;
JSON
{
  "hex": "#312286",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 249,
    "s": 59.524,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34368,
    "c": 0.15696,
    "h": 281.1
  },
  "luminance": 0.03518
}

Semantic roles & 50–950 ramp

primary
#312286
secondary
#A6B64E
accent
#E345CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312286

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

Preview Lab → · Contrast checker → · Palette generator →

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