#230948#230948

#230948 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.107 H 295.3°. Best body text is #FFFFFF at 17.44:1 contrast (WCAG AA passes).

Color values

HEX#230948
RGBrgb(35, 9, 72)
HSLhsl(265, 78%, 16%)
HSVhsv(265, 88%, 28%)
CMYKcmyk(51.4%, 87.5%, 0%, 71.8%)
CIE-LABlab(9.16, 28.66, -33.66)
CIE-LCHlch(9.16, 44.21, 310.42°)
OKLaboklab(23% 0.0455 -0.0965)
OKLCHoklch(23% 0.107 295.3)
XYZxyz(1.9602, 1.0205, 6.2233)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230948 #2E4809
analogous
#090E48 #230948 #420948
triadic
#230948 #482309 #094823
tetradic
#230948 #48090E #2E4809 #094842
square
#230948 #48090E #2E4809 #094842
split-complementary
#230948 #484209 #0E4809
monochromatic
#0D031B #0D031B #230948 #3D107E #5817B5

Accessibility & contrast

On white

17.44
#230948 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#230948 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230948
17.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230948#FFFFFF#000000##FFFFFF
##2309481.0017.441.2017.44
#FFFFFF17.441.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4A
Deuteranopia (green-blind)
#001947
Tritanopia (blue-blind)
#181B28
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #230948;
/* rgb */ color: rgb(35, 9, 72);
/* oklch */ color: oklch(23.0% 0.107 295.3);
Tailwind
colors: {
  custom: {
    50: '#634c7c',
    500: '#230948',
    950: '#000000',
  },
}
SCSS
$custom: #230948;
$custom-light: #634c7c;
$custom-dark: #000000;
JSON
{
  "hex": "#230948",
  "rgb": {
    "r": 35,
    "g": 9,
    "b": 72
  },
  "hsl": {
    "h": 264.762,
    "s": 77.778,
    "l": 15.882
  },
  "oklch": {
    "l": 0.22998,
    "c": 0.10671,
    "h": 295.3
  },
  "luminance": 0.01021
}

Semantic roles & 50–950 ramp

primary
#230948
secondary
#5F8527
accent
#F434A5
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060109
muted
#7A777B

Preview Lab

Preview with #230948

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

Preview Lab → · Contrast checker → · Palette generator →

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