#231245#231245

#231245 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.0% C 0.091 H 293.8°. Best body text is #FFFFFF at 16.88:1 contrast (WCAG AA passes).

Color values

HEX#231245
RGBrgb(35, 18, 69)
HSLhsl(260, 59%, 17%)
HSVhsv(260, 74%, 27%)
CMYKcmyk(49.3%, 73.9%, 0%, 72.9%)
CIE-LABlab(10.70, 22.56, -29.04)
CIE-LCHlch(10.70, 36.78, 307.84°)
OKLaboklab(24% 0.0365 -0.083)
OKLCHoklch(24% 0.091 293.8)
XYZxyz(1.9833, 1.2196, 5.7600)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#231245 #344512
analogous
#121B45 #231245 #3D1245
triadic
#231245 #452312 #124523
tetradic
#231245 #45121B #344512 #12453D
square
#231245 #45121B #344512 #12453D
split-complementary
#231245 #453D12 #1B4512
monochromatic
#0C0618 #0C0618 #231245 #3C1F76 #542BA6

Accessibility & contrast

On white

16.88
#231245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#231245 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #231245
16.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##231245#FFFFFF#000000##FFFFFF
##2312451.0016.881.2416.88
#FFFFFF16.881.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D47
Deuteranopia (green-blind)
#001C44
Tritanopia (blue-blind)
#191E29
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #231245;
/* rgb */ color: rgb(35, 18, 69);
/* oklch */ color: oklch(24.0% 0.091 293.8);
Tailwind
colors: {
  custom: {
    50: '#625179',
    500: '#231245',
    950: '#000000',
  },
}
SCSS
$custom: #231245;
$custom-light: #625179;
$custom-dark: #000000;
JSON
{
  "hex": "#231245",
  "rgb": {
    "r": 35,
    "g": 18,
    "b": 69
  },
  "hsl": {
    "h": 260,
    "s": 58.621,
    "l": 17.059
  },
  "oklch": {
    "l": 0.23997,
    "c": 0.0907,
    "h": 293.8
  },
  "luminance": 0.0122
}

Semantic roles & 50–950 ramp

primary
#231245
secondary
#667E35
accent
#E246AE
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050209
muted
#79787B

Preview Lab

Preview with #231245

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

Preview Lab → · Contrast checker → · Palette generator →

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