#230742#230742

#230742 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.1% C 0.102 H 299.2°. Best body text is #FFFFFF at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#230742
RGBrgb(35, 7, 66)
HSLhsl(268, 81%, 14%)
HSVhsv(268, 89%, 26%)
CMYKcmyk(47%, 89.4%, 0%, 74.1%)
CIE-LABlab(8.15, 27.98, -31.08)
CIE-LCHlch(8.15, 41.82, 311.99°)
OKLaboklab(22.1% 0.0497 -0.0889)
OKLCHoklch(22.1% 0.102 299.2)
XYZxyz(1.7522, 0.9026, 5.2351)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230742 #264207
analogous
#070842 #230742 #410742
triadic
#230742 #422307 #074223
tetradic
#230742 #420708 #264207 #074241
square
#230742 #420708 #264207 #074241
split-complementary
#230742 #424107 #084207
monochromatic
#0F031C #0F031C #230742 #400D79 #5E13B1

Accessibility & contrast

On white

17.79
#230742 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#230742 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230742
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230742#FFFFFF#000000##FFFFFF
##2307421.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001844
Deuteranopia (green-blind)
#001741
Tritanopia (blue-blind)
#1B1725
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #230742;
/* rgb */ color: rgb(35, 7, 66);
/* oklch */ color: oklch(22.1% 0.102 299.2);
Tailwind
colors: {
  custom: {
    50: '#624a77',
    500: '#230742',
    950: '#000000',
  },
}
SCSS
$custom: #230742;
$custom-light: #624a77;
$custom-dark: #000000;
JSON
{
  "hex": "#230742",
  "rgb": {
    "r": 35,
    "g": 7,
    "b": 66
  },
  "hsl": {
    "h": 268.475,
    "s": 80.822,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22101,
    "c": 0.10189,
    "h": 299.2
  },
  "luminance": 0.00903
}

Semantic roles & 50–950 ramp

primary
#230742
secondary
#558124
accent
#F73199
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #230742

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

Preview Lab → · Contrast checker → · Palette generator →

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