#312095#312095

#312095 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.7% C 0.178 H 279.0°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#312095
RGBrgb(49, 32, 149)
HSLhsl(249, 65%, 35%)
HSVhsv(249, 79%, 58%)
CMYKcmyk(67.1%, 78.5%, 0%, 41.6%)
CIE-LABlab(23.19, 42.71, -60.81)
CIE-LCHlch(23.19, 74.31, 305.08°)
OKLaboklab(35.67% 0.0277 -0.1756)
OKLCHoklch(35.67% 0.178 279)
XYZxyz(7.2062, 3.8553, 28.7923)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312095 #849520
analogous
#204995 #312095 #6B2095
triadic
#312095 #953120 #209531
tetradic
#312095 #952049 #849520 #20956B
square
#312095 #952049 #849520 #20956B
split-complementary
#312095 #956B20 #499520
monochromatic
#100A30 #201563 #312095 #422BC7 #6855DA

Accessibility & contrast

On white

11.86
#312095 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#312095 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312095
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312095#FFFFFF#000000##FFFFFF
##3120951.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C98
Deuteranopia (green-blind)
#003393
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #312095;
/* rgb */ color: rgb(49, 32, 149);
/* oklch */ color: oklch(35.7% 0.178 279.0);
Tailwind
colors: {
  custom: {
    50: '#785fb5',
    500: '#312095',
    950: '#000000',
  },
}
SCSS
$custom: #312095;
$custom-light: #785fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#312095",
  "rgb": {
    "r": 49,
    "g": 32,
    "b": 149
  },
  "hsl": {
    "h": 248.718,
    "s": 64.641,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35669,
    "c": 0.17778,
    "h": 279
  },
  "luminance": 0.03856
}

Semantic roles & 50–950 ramp

primary
#312095
secondary
#AEBE53
accent
#E840CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312095

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

Preview Lab → · Contrast checker → · Palette generator →

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