#231270#231270

#231270 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.148 H 279.8°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#231270
RGBrgb(35, 18, 112)
HSLhsl(251, 72%, 25%)
HSVhsv(251, 84%, 44%)
CMYKcmyk(68.8%, 83.9%, 0%, 56.1%)
CIE-LABlab(15.27, 36.67, -50.51)
CIE-LCHlch(15.27, 62.42, 305.97°)
OKLaboklab(28.61% 0.0251 -0.1458)
OKLCHoklch(28.61% 0.148 279.8)
XYZxyz(3.8331, 1.9595, 15.5023)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231270 #5F7012
analogous
#123070 #231270 #521270
triadic
#231270 #702312 #127023
tetradic
#231270 #701230 #5F7012 #127052
square
#231270 #701230 #5F7012 #127052
split-complementary
#231270 #705212 #307012
monochromatic
#08041A #130A3B #231270 #331AA5 #4423D9

Accessibility & contrast

On white

15.09
#231270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#231270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231270
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231270#FFFFFF#000000##FFFFFF
##2312701.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00236E
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #231270;
/* rgb */ color: rgb(35, 18, 112);
/* oklch */ color: oklch(28.6% 0.148 279.8);
Tailwind
colors: {
  custom: {
    50: '#6b539a',
    500: '#231270',
    950: '#000000',
  },
}
SCSS
$custom: #231270;
$custom-light: #6b539a;
$custom-dark: #000000;
JSON
{
  "hex": "#231270",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 250.851,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28605,
    "c": 0.14799,
    "h": 279.8
  },
  "luminance": 0.0196
}

Semantic roles & 50–950 ramp

primary
#231270
secondary
#93A737
accent
#EF39CE
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #231270

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

Preview Lab → · Contrast checker → · Palette generator →

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