#312382#312382

#312382 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.1% C 0.151 H 281.6°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#312382
RGBrgb(49, 35, 130)
HSLhsl(249, 58%, 32%)
HSVhsv(249, 73%, 51%)
CMYKcmyk(62.3%, 73.1%, 0%, 49%)
CIE-LABlab(21.82, 34.90, -51.20)
CIE-LCHlch(21.82, 61.97, 304.28°)
OKLaboklab(34.12% 0.0302 -0.1476)
OKLCHoklch(34.12% 0.151 281.6)
XYZxyz(5.8957, 3.4663, 21.4732)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312382 #748223
analogous
#234582 #312382 #612382
triadic
#312382 #823123 #238231
tetradic
#312382 #822345 #748223 #238261
square
#312382 #822345 #748223 #238261
split-complementary
#312382 #826123 #458223
monochromatic
#0D0922 #1F1652 #312382 #4330B2 #6350D0

Accessibility & contrast

On white

12.40
#312382 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#312382 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312382
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312382#FFFFFF#000000##FFFFFF
##3123821.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003885
Deuteranopia (green-blind)
#003180
Tritanopia (blue-blind)
#003D50
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #312382;
/* rgb */ color: rgb(49, 35, 130);
/* oklch */ color: oklch(34.1% 0.151 281.6);
Tailwind
colors: {
  custom: {
    50: '#745fa7',
    500: '#312382',
    950: '#000000',
  },
}
SCSS
$custom: #312382;
$custom-light: #745fa7;
$custom-dark: #000000;
JSON
{
  "hex": "#312382",
  "rgb": {
    "r": 49,
    "g": 35,
    "b": 130
  },
  "hsl": {
    "h": 248.842,
    "s": 57.576,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34115,
    "c": 0.15064,
    "h": 281.6
  },
  "luminance": 0.03467
}

Semantic roles & 50–950 ramp

primary
#312382
secondary
#A4B34D
accent
#E147CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312382

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

Preview Lab → · Contrast checker → · Palette generator →

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