#231268#231268

#231268 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.7% C 0.138 H 281.6°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#231268
RGBrgb(35, 18, 104)
HSLhsl(252, 70%, 24%)
HSVhsv(252, 83%, 41%)
CMYKcmyk(66.3%, 82.7%, 0%, 59.2%)
CIE-LABlab(14.34, 34.09, -46.82)
CIE-LCHlch(14.34, 57.92, 306.06°)
OKLaboklab(27.68% 0.0277 -0.1351)
OKLCHoklch(27.68% 0.138 281.6)
XYZxyz(3.4073, 1.7892, 13.2598)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231268 #576812
analogous
#122C68 #231268 #4E1268
triadic
#231268 #682312 #126823
tetradic
#231268 #68122C #576812 #12684E
square
#231268 #68122C #576812 #12684E
split-complementary
#231268 #684E12 #2C6812
monochromatic
#09051A #110934 #231268 #351B9C #4624D0

Accessibility & contrast

On white

15.47
#231268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#231268 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231268
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231268#FFFFFF#000000##FFFFFF
##2312681.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276A
Deuteranopia (green-blind)
#002166
Tritanopia (blue-blind)
#002C3D
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #231268;
/* rgb */ color: rgb(35, 18, 104);
/* oklch */ color: oklch(27.7% 0.138 281.6);
Tailwind
colors: {
  custom: {
    50: '#695394',
    500: '#231268',
    950: '#000000',
  },
}
SCSS
$custom: #231268;
$custom-light: #695394;
$custom-dark: #000000;
JSON
{
  "hex": "#231268",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 251.86,
    "s": 70.492,
    "l": 23.922
  },
  "oklch": {
    "l": 0.2768,
    "c": 0.1379,
    "h": 281.6
  },
  "luminance": 0.01789
}

Semantic roles & 50–950 ramp

primary
#231268
secondary
#8BA036
accent
#ED3BCA
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020D
muted
#7A787E

Preview Lab

Preview with #231268

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

Preview Lab → · Contrast checker → · Palette generator →

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