#312692#312692

#312692 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 36.2% C 0.168 H 278.5°. Best body text is #FFFFFF at 11.52:1 contrast (WCAG AA passes).

Color values

HEX#312692
RGBrgb(49, 38, 146)
HSLhsl(246, 59%, 36%)
HSVhsv(246, 74%, 57%)
CMYKcmyk(66.4%, 74%, 0%, 42.7%)
CIE-LABlab(24.04, 38.43, -57.54)
CIE-LCHlch(24.04, 69.19, 303.74°)
OKLaboklab(36.18% 0.0247 -0.1661)
OKLCHoklch(36.18% 0.168 278.5)
XYZxyz(7.1464, 4.1139, 27.6060)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312692 #879226
analogous
#265192 #312692 #672692
triadic
#312692 #923126 #269231
tetradic
#312692 #922651 #879226 #269267
square
#312692 #922651 #879226 #269267
split-complementary
#312692 #926726 #519226
monochromatic
#100D31 #211961 #312692 #4133C3 #6A5DD5

Accessibility & contrast

On white

11.52
#312692 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#312692 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312692
11.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312692#FFFFFF#000000##FFFFFF
##3126921.0011.521.8211.52
#FFFFFF11.521.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D95
Deuteranopia (green-blind)
#003590
Tritanopia (blue-blind)
#004459
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #312692;
/* rgb */ color: rgb(49, 38, 146);
/* oklch */ color: oklch(36.2% 0.168 278.5);
Tailwind
colors: {
  custom: {
    50: '#7762b3',
    500: '#312692',
    950: '#000000',
  },
}
SCSS
$custom: #312692;
$custom-light: #7762b3;
$custom-dark: #000000;
JSON
{
  "hex": "#312692",
  "rgb": {
    "r": 49,
    "g": 38,
    "b": 146
  },
  "hsl": {
    "h": 246.111,
    "s": 58.696,
    "l": 36.078
  },
  "oklch": {
    "l": 0.3618,
    "c": 0.16794,
    "h": 278.5
  },
  "luminance": 0.04115
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #312692

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

Preview Lab → · Contrast checker → · Palette generator →

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