#312294#312294

#312294 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.175 H 278.8°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#312294
RGBrgb(49, 34, 148)
HSLhsl(248, 63%, 36%)
HSVhsv(248, 77%, 58%)
CMYKcmyk(66.9%, 77%, 0%, 42%)
CIE-LABlab(23.45, 41.33, -59.75)
CIE-LCHlch(23.45, 72.65, 304.67°)
OKLaboklab(35.82% 0.0268 -0.1725)
OKLCHoklch(35.82% 0.175 278.8)
XYZxyz(7.1822, 3.9345, 28.3922)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312294 #859422
analogous
#224C94 #312294 #6A2294
triadic
#312294 #943122 #229431
tetradic
#312294 #94224C #859422 #22946A
square
#312294 #94224C #859422 #22946A
split-complementary
#312294 #946A22 #4C9422
monochromatic
#100B30 #211762 #312294 #412DC6 #6958D9

Accessibility & contrast

On white

11.75
#312294 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #312294
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312294#FFFFFF#000000##FFFFFF
##3122941.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312294;
/* rgb */ color: rgb(49, 34, 148);
/* oklch */ color: oklch(35.8% 0.175 278.8);
Tailwind
colors: {
  custom: {
    50: '#7760b5',
    500: '#312294',
    950: '#000000',
  },
}
SCSS
$custom: #312294;
$custom-light: #7760b5;
$custom-dark: #000000;
JSON
{
  "hex": "#312294",
  "rgb": {
    "r": 49,
    "g": 34,
    "b": 148
  },
  "hsl": {
    "h": 247.895,
    "s": 62.637,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35824,
    "c": 0.17461,
    "h": 278.8
  },
  "luminance": 0.03935
}

Semantic roles & 50–950 ramp

primary
#312294
secondary
#AFBD55
accent
#E642D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312294

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

Preview Lab → · Contrast checker → · Palette generator →

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