#311380#311380

#311380 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.164 H 284.8°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#311380
RGBrgb(49, 19, 128)
HSLhsl(257, 74%, 29%)
HSVhsv(257, 85%, 50%)
CMYKcmyk(61.7%, 85.2%, 0%, 49.8%)
CIE-LABlab(18.70, 42.58, -55.08)
CIE-LCHlch(18.70, 69.62, 307.71°)
OKLaboklab(31.86% 0.0418 -0.1587)
OKLCHoklch(31.86% 0.164 284.8)
XYZxyz(5.3946, 2.6769, 20.6503)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#311380 #628013
analogous
#132C80 #311380 #681380
triadic
#311380 #803113 #138031
tetradic
#311380 #80132C #628013 #138068
square
#311380 #80132C #628013 #138068
split-complementary
#311380 #806813 #2C8013
monochromatic
#0A041B #1D0B4B #311380 #451BB5 #5F2DE0

Accessibility & contrast

On white

13.68
#311380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#311380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #311380
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##311380#FFFFFF#000000##FFFFFF
##3113801.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #311380;
/* rgb */ color: rgb(49, 19, 128);
/* oklch */ color: oklch(31.9% 0.164 284.8);
Tailwind
colors: {
  custom: {
    50: '#7556a6',
    500: '#311380',
    950: '#000000',
  },
}
SCSS
$custom: #311380;
$custom-light: #7556a6;
$custom-dark: #000000;
JSON
{
  "hex": "#311380",
  "rgb": {
    "r": 49,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 256.514,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31863,
    "c": 0.16417,
    "h": 284.8
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#311380
secondary
#93B539
accent
#F137BE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #311380

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

Preview Lab → · Contrast checker → · Palette generator →

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