#312092#312092

#312092 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.3% C 0.174 H 279.4°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#312092
RGBrgb(49, 32, 146)
HSLhsl(249, 64%, 35%)
HSVhsv(249, 78%, 57%)
CMYKcmyk(66.4%, 78.1%, 0%, 42.7%)
CIE-LABlab(22.86, 41.76, -59.49)
CIE-LCHlch(22.86, 72.68, 305.07°)
OKLaboklab(35.35% 0.0285 -0.1718)
OKLCHoklch(35.35% 0.174 279.4)
XYZxyz(6.9698, 3.7608, 27.5472)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312092 #819220
analogous
#204892 #312092 #6A2092
triadic
#312092 #923120 #209231
tetradic
#312092 #922048 #819220 #20926A
square
#312092 #922048 #819220 #20926A
split-complementary
#312092 #926A20 #489220
monochromatic
#0F0A2E #201560 #312092 #422BC4 #6753D9

Accessibility & contrast

On white

11.98
#312092 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#312092 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312092
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312092#FFFFFF#000000##FFFFFF
##3120921.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B95
Deuteranopia (green-blind)
#003290
Tritanopia (blue-blind)
#004158
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #312092;
/* rgb */ color: rgb(49, 32, 146);
/* oklch */ color: oklch(35.3% 0.174 279.4);
Tailwind
colors: {
  custom: {
    50: '#775eb3',
    500: '#312092',
    950: '#000000',
  },
}
SCSS
$custom: #312092;
$custom-light: #775eb3;
$custom-dark: #000000;
JSON
{
  "hex": "#312092",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 146
  },
  "hsl": {
    "h": 248.947,
    "s": 64.045,
    "l": 34.902
  },
  "oklch": {
    "l": 0.35347,
    "c": 0.17411,
    "h": 279.4
  },
  "luminance": 0.03761
}

Semantic roles & 50–950 ramp

primary
#312092
secondary
#ADBD51
accent
#E741CE
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312092

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

Preview Lab → · Contrast checker → · Palette generator →

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