#312693#312693

#312693 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.3% C 0.169 H 278.3°. Best body text is #FFFFFF at 11.48:1 contrast (WCAG AA passes).

Color values

HEX#312693
RGBrgb(49, 38, 147)
HSLhsl(246, 59%, 36%)
HSVhsv(246, 74%, 58%)
CMYKcmyk(66.7%, 74.1%, 0%, 42.4%)
CIE-LABlab(24.15, 38.76, -57.99)
CIE-LCHlch(24.15, 69.75, 303.76°)
OKLaboklab(36.28% 0.0245 -0.1674)
OKLCHoklch(36.28% 0.169 278.3)
XYZxyz(7.2245, 4.1452, 28.0175)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312693 #889326
analogous
#265293 #312693 #682693
triadic
#312693 #933126 #269331
tetradic
#312693 #932652 #889326 #269368
square
#312693 #932652 #889326 #269368
split-complementary
#312693 #936826 #529326
monochromatic
#110D32 #211962 #312693 #4133C4 #6A5ED5

Accessibility & contrast

On white

11.48
#312693 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#312693 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312693
11.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312693#FFFFFF#000000##FFFFFF
##3126931.0011.481.8311.48
#FFFFFF11.481.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E96
Deuteranopia (green-blind)
#003591
Tritanopia (blue-blind)
#00455A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312693;
/* rgb */ color: rgb(49, 38, 147);
/* oklch */ color: oklch(36.3% 0.169 278.3);
Tailwind
colors: {
  custom: {
    50: '#7762b4',
    500: '#312693',
    950: '#000000',
  },
}
SCSS
$custom: #312693;
$custom-light: #7762b4;
$custom-dark: #000000;
JSON
{
  "hex": "#312693",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 147
  },
  "hsl": {
    "h": 246.055,
    "s": 58.919,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36283,
    "c": 0.16922,
    "h": 278.3
  },
  "luminance": 0.04146
}

Semantic roles & 50–950 ramp

primary
#312693
secondary
#B1BA5A
accent
#E246D2
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312693

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

Preview Lab → · Contrast checker → · Palette generator →

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