#312282#312282

#312282 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.0% C 0.152 H 281.8°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#312282
RGBrgb(49, 34, 130)
HSLhsl(249, 59%, 32%)
HSVhsv(249, 74%, 51%)
CMYKcmyk(62.3%, 73.8%, 0%, 49%)
CIE-LABlab(21.61, 35.49, -51.55)
CIE-LCHlch(21.61, 62.59, 304.54°)
OKLaboklab(33.96% 0.031 -0.1486)
OKLCHoklch(33.96% 0.152 281.8)
XYZxyz(5.8667, 3.4083, 21.4635)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312282 #738222
analogous
#224382 #312282 #612282
triadic
#312282 #823122 #228231
tetradic
#312282 #822243 #738222 #228261
square
#312282 #822243 #738222 #228261
split-complementary
#312282 #826122 #438222
monochromatic
#0C0921 #1F1551 #312282 #432FB3 #624ED1

Accessibility & contrast

On white

12.49
#312282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#312282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312282
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312282#FFFFFF#000000##FFFFFF
##3122821.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003785
Deuteranopia (green-blind)
#003080
Tritanopia (blue-blind)
#003C4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312282;
/* rgb */ color: rgb(49, 34, 130);
/* oklch */ color: oklch(34.0% 0.152 281.8);
Tailwind
colors: {
  custom: {
    50: '#745fa7',
    500: '#312282',
    950: '#000000',
  },
}
SCSS
$custom: #312282;
$custom-light: #745fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#312282",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 249.375,
    "s": 58.537,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33964,
    "c": 0.15179,
    "h": 281.8
  },
  "luminance": 0.03409
}

Semantic roles & 50–950 ramp

primary
#312282
secondary
#A4B44C
accent
#E246C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #312282

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

Preview Lab → · Contrast checker → · Palette generator →

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