#312694#312694

#312694 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.4% C 0.170 H 278.2°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#312694
RGBrgb(49, 38, 148)
HSLhsl(246, 59%, 36%)
HSVhsv(246, 74%, 58%)
CMYKcmyk(66.9%, 74.3%, 0%, 42%)
CIE-LABlab(24.25, 39.09, -58.44)
CIE-LCHlch(24.25, 70.31, 303.78°)
OKLaboklab(36.39% 0.0243 -0.1687)
OKLCHoklch(36.39% 0.17 278.2)
XYZxyz(7.3033, 4.1767, 28.4325)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312694 #899426
analogous
#265294 #312694 #682694
triadic
#312694 #943126 #269431
tetradic
#312694 #942652 #899426 #269468
square
#312694 #942652 #899426 #269468
split-complementary
#312694 #946826 #529426
monochromatic
#110D33 #211963 #312694 #4133C5 #6B5FD6

Accessibility & contrast

On white

11.44
#312694 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#312694 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312694
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312694#FFFFFF#000000##FFFFFF
##3126941.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003592
Tritanopia (blue-blind)
#00455B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #312694;
/* rgb */ color: rgb(49, 38, 148);
/* oklch */ color: oklch(36.4% 0.170 278.2);
Tailwind
colors: {
  custom: {
    50: '#7762b5',
    500: '#312694',
    950: '#000000',
  },
}
SCSS
$custom: #312694;
$custom-light: #7762b5;
$custom-dark: #000000;
JSON
{
  "hex": "#312694",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 148
  },
  "hsl": {
    "h": 246,
    "s": 59.14,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36385,
    "c": 0.17049,
    "h": 278.2
  },
  "luminance": 0.04177
}

Semantic roles & 50–950 ramp

primary
#312694
secondary
#B1BB5B
accent
#E245D3
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312694

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

Preview Lab → · Contrast checker → · Palette generator →

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