#312484#312484

#312484 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.5% C 0.152 H 281.0°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#312484
RGBrgb(49, 36, 132)
HSLhsl(248, 57%, 33%)
HSVhsv(248, 73%, 52%)
CMYKcmyk(62.9%, 72.7%, 0%, 48.2%)
CIE-LABlab(22.23, 34.97, -51.79)
CIE-LCHlch(22.23, 62.49, 304.02°)
OKLaboklab(34.47% 0.029 -0.1493)
OKLCHoklch(34.47% 0.152 281)
XYZxyz(6.0610, 3.5802, 22.1970)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312484 #778424
analogous
#244784 #312484 #612484
triadic
#312484 #843124 #248431
tetradic
#312484 #842447 #778424 #248461
square
#312484 #842447 #778424 #248461
split-complementary
#312484 #846124 #478424
monochromatic
#0D0A24 #1F1754 #312484 #4331B4 #6352D0

Accessibility & contrast

On white

12.24
#312484 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#312484 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312484
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312484#FFFFFF#000000##FFFFFF
##3124841.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003987
Deuteranopia (green-blind)
#003282
Tritanopia (blue-blind)
#003E51
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #312484;
/* rgb */ color: rgb(49, 36, 132);
/* oklch */ color: oklch(34.5% 0.152 281.0);
Tailwind
colors: {
  custom: {
    50: '#7460a9',
    500: '#312484',
    950: '#000000',
  },
}
SCSS
$custom: #312484;
$custom-light: #7460a9;
$custom-dark: #000000;
JSON
{
  "hex": "#312484",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 132
  },
  "hsl": {
    "h": 248.125,
    "s": 57.143,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34467,
    "c": 0.15209,
    "h": 281
  },
  "luminance": 0.03581
}

Semantic roles & 50–950 ramp

primary
#312484
secondary
#A6B450
accent
#E047CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312484

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

Preview Lab → · Contrast checker → · Palette generator →

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