#312195#312195

#312195 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.177 H 278.8°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#312195
RGBrgb(49, 33, 149)
HSLhsl(248, 64%, 36%)
HSVhsv(248, 78%, 58%)
CMYKcmyk(67.1%, 77.9%, 0%, 41.6%)
CIE-LABlab(23.37, 42.18, -60.50)
CIE-LCHlch(23.37, 73.76, 304.88°)
OKLaboklab(35.8% 0.0272 -0.1747)
OKLCHoklch(35.8% 0.177 278.8)
XYZxyz(7.2336, 3.9100, 28.8015)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#312195 #859521
analogous
#214B95 #312195 #6B2195
triadic
#312195 #953121 #219531
tetradic
#312195 #95214B #859521 #21956B
square
#312195 #95214B #859521 #21956B
split-complementary
#312195 #956B21 #4B9521
monochromatic
#100B31 #211663 #312195 #412CC7 #6957DA

Accessibility & contrast

On white

11.78
#312195 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#312195 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #312195
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##312195#FFFFFF#000000##FFFFFF
##3121951.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #312195;
/* rgb */ color: rgb(49, 33, 149);
/* oklch */ color: oklch(35.8% 0.177 278.8);
Tailwind
colors: {
  custom: {
    50: '#785fb5',
    500: '#312195',
    950: '#000000',
  },
}
SCSS
$custom: #312195;
$custom-light: #785fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#312195",
  "rgb": {
    "r": 49,
    "g": 33,
    "b": 149
  },
  "hsl": {
    "h": 248.276,
    "s": 63.736,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35798,
    "c": 0.17682,
    "h": 278.8
  },
  "luminance": 0.03911
}

Semantic roles & 50–950 ramp

primary
#312195
secondary
#AFBE54
accent
#E741D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0511
muted
#7C7980

Preview Lab

Preview with #312195

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

Preview Lab → · Contrast checker → · Palette generator →

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