#312295#312295

#312295 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.176 H 278.7°. Best body text is #FFFFFF at 11.71:1 contrast (WCAG AA passes).

Color values

HEX#312295
RGBrgb(49, 34, 149)
HSLhsl(248, 63%, 36%)
HSVhsv(248, 77%, 58%)
CMYKcmyk(67.1%, 77.2%, 0%, 41.6%)
CIE-LABlab(23.56, 41.65, -60.19)
CIE-LCHlch(23.56, 73.20, 304.68°)
OKLaboklab(35.93% 0.0266 -0.1738)
OKLCHoklch(35.93% 0.176 278.7)
XYZxyz(7.2617, 3.9663, 28.8108)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312295 #869522
analogous
#224C95 #312295 #6A2295
triadic
#312295 #953122 #229531
tetradic
#312295 #95224C #869522 #22956A
square
#312295 #95224C #869522 #22956A
split-complementary
#312295 #956A22 #4C9522
monochromatic
#100B31 #211763 #312295 #412DC7 #6958D9

Accessibility & contrast

On white

11.71
#312295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312295
11.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312295#FFFFFF#000000##FFFFFF
##3122951.0011.711.7911.71
#FFFFFF11.711.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #312295;
/* rgb */ color: rgb(49, 34, 149);
/* oklch */ color: oklch(35.9% 0.176 278.7);
Tailwind
colors: {
  custom: {
    50: '#7860b5',
    500: '#312295',
    950: '#000000',
  },
}
SCSS
$custom: #312295;
$custom-light: #7860b5;
$custom-dark: #000000;
JSON
{
  "hex": "#312295",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 149
  },
  "hsl": {
    "h": 247.826,
    "s": 62.842,
    "l": 35.882
  },
  "oklch": {
    "l": 0.35931,
    "c": 0.17585,
    "h": 278.7
  },
  "luminance": 0.03967
}

Semantic roles & 50–950 ramp

primary
#312295
secondary
#B0BD56
accent
#E642D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312295

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

Preview Lab → · Contrast checker → · Palette generator →

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