#371262#371262

#371262 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.130 H 299.0°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#371262
RGBrgb(55, 18, 98)
HSLhsl(268, 69%, 23%)
HSVhsv(268, 82%, 38%)
CMYKcmyk(43.9%, 81.6%, 0%, 61.6%)
CIE-LABlab(16.14, 35.33, -39.82)
CIE-LCHlch(16.14, 53.23, 311.59°)
OKLaboklab(29.31% 0.063 -0.1139)
OKLCHoklch(29.31% 0.13 299)
XYZxyz(3.9959, 2.1266, 11.7529)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#371262 #3D6212
analogous
#121562 #371262 #5F1262
triadic
#371262 #623712 #126237
tetradic
#371262 #621215 #3D6212 #12625F
square
#371262 #621215 #3D6212 #12625F
split-complementary
#371262 #625F12 #156212
monochromatic
#0F051A #1A092E #371262 #541B96 #7125C9

Accessibility & contrast

On white

14.73
#371262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#371262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #371262
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##371262#FFFFFF#000000##FFFFFF
##3712621.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002864
Deuteranopia (green-blind)
#002760
Tritanopia (blue-blind)
#2C2739
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #371262;
/* rgb */ color: rgb(55, 18, 98);
/* oklch */ color: oklch(29.3% 0.130 299.0);
Tailwind
colors: {
  custom: {
    50: '#73548f',
    500: '#371262',
    950: '#000000',
  },
}
SCSS
$custom: #371262;
$custom-light: #73548f;
$custom-dark: #000000;
JSON
{
  "hex": "#371262",
  "rgb": {
    "r": 55,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 267.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.29307,
    "c": 0.13015,
    "h": 299
  },
  "luminance": 0.02127
}

Semantic roles & 50–950 ramp

primary
#371262
secondary
#6C9A36
accent
#EC3C9A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #371262

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

Preview Lab → · Contrast checker → · Palette generator →

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