#231248#231248

#231248 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.3% C 0.095 H 292.3°. Best body text is #FFFFFF at 16.78:1 contrast (WCAG AA passes).

Color values

HEX#231248
RGBrgb(35, 18, 72)
HSLhsl(259, 60%, 18%)
HSVhsv(259, 75%, 28%)
CMYKcmyk(51.4%, 75%, 0%, 71.8%)
CIE-LABlab(10.98, 23.55, -30.69)
CIE-LCHlch(10.98, 38.69, 307.50°)
OKLaboklab(24.28% 0.0361 -0.0879)
OKLCHoklch(24.28% 0.095 292.3)
XYZxyz(2.0788, 1.2577, 6.2629)
Luminance0.0126 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231248 #374812
analogous
#121C48 #231248 #3E1248
triadic
#231248 #482312 #124823
tetradic
#231248 #48121C #374812 #12483E
square
#231248 #48121C #374812 #12483E
split-complementary
#231248 #483E12 #1C4812
monochromatic
#0C0618 #0C0618 #231248 #3B1E79 #532AAA

Accessibility & contrast

On white

16.78
#231248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#231248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231248
16.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231248#FFFFFF#000000##FFFFFF
##2312481.0016.781.2516.78
#FFFFFF16.781.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4A
Deuteranopia (green-blind)
#001C47
Tritanopia (blue-blind)
#181F2B
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #231248;
/* rgb */ color: rgb(35, 18, 72);
/* oklch */ color: oklch(24.3% 0.095 292.3);
Tailwind
colors: {
  custom: {
    50: '#62517b',
    500: '#231248',
    950: '#000000',
  },
}
SCSS
$custom: #231248;
$custom-light: #62517b;
$custom-dark: #000000;
JSON
{
  "hex": "#231248",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 258.889,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24282,
    "c": 0.09497,
    "h": 292.3
  },
  "luminance": 0.01258
}

Semantic roles & 50–950 ramp

primary
#231248
secondary
#698135
accent
#E345B1
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#050209
muted
#7A787B

Preview Lab

Preview with #231248

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

Preview Lab → · Contrast checker → · Palette generator →

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