#231272#231272

#231272 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.150 H 279.3°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#231272
RGBrgb(35, 18, 114)
HSLhsl(251, 73%, 26%)
HSVhsv(251, 84%, 45%)
CMYKcmyk(69.3%, 84.2%, 0%, 55.3%)
CIE-LABlab(15.51, 37.30, -51.42)
CIE-LCHlch(15.51, 63.53, 305.96°)
OKLaboklab(28.84% 0.0244 -0.1485)
OKLCHoklch(28.84% 0.15 279.3)
XYZxyz(3.9457, 2.0045, 16.0953)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231272 #617212
analogous
#123172 #231272 #531272
triadic
#231272 #722312 #127223
tetradic
#231272 #721231 #617212 #127253
square
#231272 #721231 #617212 #127253
split-complementary
#231272 #725312 #317212
monochromatic
#08041A #130A3D #231272 #331AA7 #4323DC

Accessibility & contrast

On white

14.99
#231272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#231272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231272
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231272#FFFFFF#000000##FFFFFF
##2312721.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002370
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #231272;
/* rgb */ color: rgb(35, 18, 114);
/* oklch */ color: oklch(28.8% 0.150 279.3);
Tailwind
colors: {
  custom: {
    50: '#6b539c',
    500: '#231272',
    950: '#000000',
  },
}
SCSS
$custom: #231272;
$custom-light: #6b539c;
$custom-dark: #000000;
JSON
{
  "hex": "#231272",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 250.625,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.2884,
    "c": 0.15048,
    "h": 279.3
  },
  "luminance": 0.02005
}

Semantic roles & 50–950 ramp

primary
#231272
secondary
#95A937
accent
#EF38CF
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #231272

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

Preview Lab → · Contrast checker → · Palette generator →

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