#231148#231148

#231148 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.1% C 0.096 H 292.7°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#231148
RGBrgb(35, 17, 72)
HSLhsl(260, 62%, 17%)
HSVhsv(260, 76%, 28%)
CMYKcmyk(51.4%, 76.4%, 0%, 71.8%)
CIE-LABlab(10.75, 24.18, -31.06)
CIE-LCHlch(10.75, 39.37, 307.90°)
OKLaboklab(24.12% 0.0372 -0.089)
OKLCHoklch(24.12% 0.096 292.7)
XYZxyz(2.0630, 1.2260, 6.2576)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231148 #364811
analogous
#111B48 #231148 #3E1148
triadic
#231148 #482311 #114823
tetradic
#231148 #48111B #364811 #11483E
square
#231148 #48111B #364811 #11483E
split-complementary
#231148 #483E11 #1B4811
monochromatic
#0C0619 #0C0619 #231148 #3B1D7A #5328AB

Accessibility & contrast

On white

16.86
#231148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #231148
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231148#FFFFFF#000000##FFFFFF
##2311481.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #231148;
/* rgb */ color: rgb(35, 17, 72);
/* oklch */ color: oklch(24.1% 0.096 292.7);
Tailwind
colors: {
  custom: {
    50: '#62507b',
    500: '#231148',
    950: '#000000',
  },
}
SCSS
$custom: #231148;
$custom-light: #62507b;
$custom-dark: #000000;
JSON
{
  "hex": "#231148",
  "rgb": {
    "r": 35,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 259.636,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24118,
    "c": 0.09644,
    "h": 292.7
  },
  "luminance": 0.01226
}

Semantic roles & 50–950 ramp

primary
#231148
secondary
#688233
accent
#E543B0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#050209
muted
#7A787B

Preview Lab

Preview with #231148

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

Preview Lab → · Contrast checker → · Palette generator →

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