#312583#312583

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

Color values

HEX#312583
RGBrgb(49, 37, 131)
HSLhsl(248, 56%, 33%)
HSVhsv(248, 72%, 51%)
CMYKcmyk(62.6%, 71.8%, 0%, 48.6%)
CIE-LABlab(22.35, 34.03, -50.96)
CIE-LCHlch(22.35, 61.28, 303.73°)
OKLaboklab(34.52% 0.0284 -0.1469)
OKLCHoklch(34.52% 0.15 280.9)
XYZxyz(6.0236, 3.6144, 21.8485)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312583 #778325
analogous
#254883 #312583 #602583
triadic
#312583 #833125 #258331
tetradic
#312583 #832548 #778325 #258360
square
#312583 #832548 #778325 #258360
split-complementary
#312583 #836025 #488325
monochromatic
#0D0A24 #1F1853 #312583 #4332B3 #6354CF

Accessibility & contrast

On white

12.19
#312583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312583
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312583#FFFFFF#000000##FFFFFF
##3125831.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312583;
/* rgb */ color: rgb(49, 37, 131);
/* oklch */ color: oklch(34.5% 0.150 280.9);
Tailwind
colors: {
  custom: {
    50: '#7461a8',
    500: '#312583',
    950: '#000000',
  },
}
SCSS
$custom: #312583;
$custom-light: #7461a8;
$custom-dark: #000000;
JSON
{
  "hex": "#312583",
  "rgb": {
    "r": 49,
    "g": 37,
    "b": 131
  },
  "hsl": {
    "h": 247.66,
    "s": 55.952,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34524,
    "c": 0.14959,
    "h": 280.9
  },
  "luminance": 0.03615
}

Semantic roles & 50–950 ramp

primary
#312583
secondary
#A6B351
accent
#DF49CC
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#090510
muted
#7B797F

Preview Lab

Preview with #312583

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

Preview Lab → · Contrast checker → · Palette generator →

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