#231276#231276

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

Color values

HEX#231276
RGBrgb(35, 18, 118)
HSLhsl(250, 74%, 27%)
HSVhsv(250, 85%, 46%)
CMYKcmyk(70.3%, 84.7%, 0%, 53.7%)
CIE-LABlab(15.99, 38.57, -53.21)
CIE-LCHlch(15.99, 65.72, 305.94°)
OKLaboklab(29.31% 0.0231 -0.1537)
OKLCHoklch(29.31% 0.155 278.6)
XYZxyz(4.1784, 2.0976, 17.3207)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231276 #657612
analogous
#123376 #231276 #551276
triadic
#231276 #762312 #127623
tetradic
#231276 #761233 #657612 #127655
square
#231276 #761233 #657612 #127655
split-complementary
#231276 #765512 #337612
monochromatic
#08041B #130A41 #231276 #331AAB #4425DE

Accessibility & contrast

On white

14.79
#231276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#231276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231276
14.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231276#FFFFFF#000000##FFFFFF
##2312761.0014.791.4214.79
#FFFFFF14.791.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #231276;
/* rgb */ color: rgb(35, 18, 118);
/* oklch */ color: oklch(29.3% 0.155 278.6);
Tailwind
colors: {
  custom: {
    50: '#6c549f',
    500: '#231276',
    950: '#000000',
  },
}
SCSS
$custom: #231276;
$custom-light: #6c549f;
$custom-dark: #000000;
JSON
{
  "hex": "#231276",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 250.2,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29313,
    "c": 0.15541,
    "h": 278.6
  },
  "luminance": 0.02098
}

Semantic roles & 50–950 ramp

primary
#231276
secondary
#99AD37
accent
#F038D1
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #231276

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

Preview Lab → · Contrast checker → · Palette generator →

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