#231262#231262

#231262 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.130 H 283.1°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#231262
RGBrgb(35, 18, 98)
HSLhsl(253, 69%, 23%)
HSVhsv(253, 82%, 38%)
CMYKcmyk(64.3%, 81.6%, 0%, 61.6%)
CIE-LABlab(13.66, 32.14, -43.98)
CIE-LCHlch(13.66, 54.47, 306.16°)
OKLaboklab(27% 0.0295 -0.1268)
OKLCHoklch(27% 0.13 283.1)
XYZxyz(3.1134, 1.6716, 11.7115)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231262 #516212
analogous
#122962 #231262 #4B1262
triadic
#231262 #622312 #126223
tetradic
#231262 #621229 #516212 #12624B
square
#231262 #621229 #516212 #12624B
split-complementary
#231262 #624B12 #296212
monochromatic
#09051A #11092E #231262 #351B96 #4825C9

Accessibility & contrast

On white

15.74
#231262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#231262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231262
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231262#FFFFFF#000000##FFFFFF
##2312621.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002564
Deuteranopia (green-blind)
#002061
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #231262;
/* rgb */ color: rgb(35, 18, 98);
/* oklch */ color: oklch(27.0% 0.130 283.1);
Tailwind
colors: {
  custom: {
    50: '#675290',
    500: '#231262',
    950: '#000000',
  },
}
SCSS
$custom: #231262;
$custom-light: #675290;
$custom-dark: #000000;
JSON
{
  "hex": "#231262",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 252.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27002,
    "c": 0.13018,
    "h": 283.1
  },
  "luminance": 0.01672
}

Semantic roles & 50–950 ramp

primary
#231262
secondary
#859A36
accent
#EC3CC6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #231262

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

Preview Lab → · Contrast checker → · Palette generator →

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