#312985#312985

#312985 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.4% C 0.147 H 279.6°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#312985
RGBrgb(49, 41, 133)
HSLhsl(245, 53%, 34%)
HSVhsv(245, 69%, 52%)
CMYKcmyk(63.2%, 69.2%, 0%, 47.8%)
CIE-LABlab(23.44, 32.24, -50.43)
CIE-LCHlch(23.44, 59.86, 302.59°)
OKLaboklab(35.37% 0.0246 -0.1453)
OKLCHoklch(35.37% 0.147 279.6)
XYZxyz(6.2919, 3.9318, 22.6131)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312985 #7D8529
analogous
#294F85 #312985 #5F2985
triadic
#312985 #853129 #298531
tetradic
#312985 #85294F #7D8529 #29855F
square
#312985 #85294F #7D8529 #29855F
split-complementary
#312985 #855F29 #4F8529
monochromatic
#0F0C27 #201B56 #312985 #4237B4 #665CCD

Accessibility & contrast

On white

11.76
#312985 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#312985 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312985
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312985#FFFFFF#000000##FFFFFF
##3129851.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B88
Deuteranopia (green-blind)
#003483
Tritanopia (blue-blind)
#004153
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #312985;
/* rgb */ color: rgb(49, 41, 133);
/* oklch */ color: oklch(35.4% 0.147 279.6);
Tailwind
colors: {
  custom: {
    50: '#7463a9',
    500: '#312985',
    950: '#000000',
  },
}
SCSS
$custom: #312985;
$custom-light: #7463a9;
$custom-dark: #000000;
JSON
{
  "hex": "#312985",
  "rgb": {
    "r": 49,
    "g": 41,
    "b": 133
  },
  "hsl": {
    "h": 245.217,
    "s": 52.874,
    "l": 34.118
  },
  "oklch": {
    "l": 0.35367,
    "c": 0.14739,
    "h": 279.6
  },
  "luminance": 0.03932
}

Semantic roles & 50–950 ramp

primary
#312985
secondary
#AAB258
accent
#DC4CD0
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#090510
muted
#7B7A7F

Preview Lab

Preview with #312985

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

Preview Lab → · Contrast checker → · Palette generator →

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