#312495#312495

#312495 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.174 H 278.4°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#312495
RGBrgb(49, 36, 149)
HSLhsl(247, 61%, 36%)
HSVhsv(247, 76%, 58%)
CMYKcmyk(67.1%, 75.8%, 0%, 41.6%)
CIE-LABlab(23.95, 40.55, -59.55)
CIE-LCHlch(23.95, 72.05, 304.25°)
OKLaboklab(36.2% 0.0253 -0.172)
OKLCHoklch(36.2% 0.174 278.4)
XYZxyz(7.3206, 4.0840, 28.8305)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312495 #889524
analogous
#245095 #312495 #6A2495
triadic
#312495 #953124 #249531
tetradic
#312495 #952450 #889524 #24956A
square
#312495 #952450 #889524 #24956A
split-complementary
#312495 #956A24 #509524
monochromatic
#110C32 #211864 #312495 #4130C6 #6A5CD8

Accessibility & contrast

On white

11.56
#312495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#312495 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312495
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312495#FFFFFF#000000##FFFFFF
##3124951.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003493
Tritanopia (blue-blind)
#00445B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312495;
/* rgb */ color: rgb(49, 36, 149);
/* oklch */ color: oklch(36.2% 0.174 278.4);
Tailwind
colors: {
  custom: {
    50: '#7761b5',
    500: '#312495',
    950: '#000000',
  },
}
SCSS
$custom: #312495;
$custom-light: #7761b5;
$custom-dark: #000000;
JSON
{
  "hex": "#312495",
  "rgb": {
    "r": 49,
    "g": 36,
    "b": 149
  },
  "hsl": {
    "h": 246.903,
    "s": 61.081,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36204,
    "c": 0.17384,
    "h": 278.4
  },
  "luminance": 0.04085
}

Semantic roles & 50–950 ramp

primary
#312495
secondary
#B1BC59
accent
#E444D2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312495

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

Preview Lab → · Contrast checker → · Palette generator →

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