#231273#231273

#231273 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.152 H 279.1°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#231273
RGBrgb(35, 18, 115)
HSLhsl(251, 73%, 26%)
HSVhsv(251, 84%, 45%)
CMYKcmyk(69.6%, 84.3%, 0%, 54.9%)
CIE-LABlab(15.63, 37.62, -51.87)
CIE-LCHlch(15.63, 64.08, 305.95°)
OKLaboklab(28.96% 0.0241 -0.1498)
OKLCHoklch(28.96% 0.152 279.1)
XYZxyz(4.0030, 2.0274, 16.3967)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231273 #627312
analogous
#123273 #231273 #531273
triadic
#231273 #732312 #127323
tetradic
#231273 #731232 #627312 #127353
square
#231273 #731232 #627312 #127353
split-complementary
#231273 #735312 #327312
monochromatic
#08041A #130A3E #231273 #331AA8 #4323DD

Accessibility & contrast

On white

14.94
#231273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#231273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231273
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231273#FFFFFF#000000##FFFFFF
##2312731.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #231273;
/* rgb */ color: rgb(35, 18, 115);
/* oklch */ color: oklch(29.0% 0.152 279.1);
Tailwind
colors: {
  custom: {
    50: '#6b549c',
    500: '#231273',
    950: '#000000',
  },
}
SCSS
$custom: #231273;
$custom-light: #6b549c;
$custom-dark: #000000;
JSON
{
  "hex": "#231273",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 250.515,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28958,
    "c": 0.15172,
    "h": 279.1
  },
  "luminance": 0.02028
}

Semantic roles & 50–950 ramp

primary
#231273
secondary
#96AA37
accent
#F038CF
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #231273

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

Preview Lab → · Contrast checker → · Palette generator →

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