#311875#311875

#311875 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.146 H 286.8°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#311875
RGBrgb(49, 24, 117)
HSLhsl(256, 66%, 28%)
HSVhsv(256, 79%, 46%)
CMYKcmyk(58.1%, 79.5%, 0%, 54.1%)
CIE-LABlab(18.32, 36.92, -48.67)
CIE-LCHlch(18.32, 61.09, 307.18°)
OKLaboklab(31.24% 0.0422 -0.1401)
OKLCHoklch(31.24% 0.146 286.8)
XYZxyz(4.8032, 2.5903, 17.0731)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311875 #5C7518
analogous
#182E75 #311875 #5F1875
triadic
#311875 #753118 #187531
tetradic
#311875 #75182E #5C7518 #18755F
square
#311875 #75182E #5C7518 #18755F
split-complementary
#311875 #755F18 #2E7518
monochromatic
#0B0519 #1C0E42 #311875 #4622A8 #5E32D5

Accessibility & contrast

On white

13.83
#311875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#311875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311875
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311875#FFFFFF#000000##FFFFFF
##3118751.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#123246
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311875;
/* rgb */ color: rgb(49, 24, 117);
/* oklch */ color: oklch(31.2% 0.146 286.8);
Tailwind
colors: {
  custom: {
    50: '#72589e',
    500: '#311875',
    950: '#000000',
  },
}
SCSS
$custom: #311875;
$custom-light: #72589e;
$custom-dark: #000000;
JSON
{
  "hex": "#311875",
  "rgb": {
    "r": 49,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 256.129,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31243,
    "c": 0.14632,
    "h": 286.8
  },
  "luminance": 0.02591
}

Semantic roles & 50–950 ramp

primary
#311875
secondary
#8DAA3F
accent
#E93FBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #311875

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

Preview Lab → · Contrast checker → · Palette generator →

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