#230F40#230F40

#230F40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.0% C 0.088 H 297.8°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#230F40
RGBrgb(35, 15, 64)
HSLhsl(264, 62%, 15%)
HSVhsv(264, 77%, 25%)
CMYKcmyk(45.3%, 76.6%, 0%, 74.9%)
CIE-LABlab(9.55, 22.86, -27.38)
CIE-LCHlch(9.55, 35.66, 309.86°)
OKLaboklab(23.03% 0.0411 -0.0781)
OKLCHoklch(23.03% 0.088 297.8)
XYZxyz(1.7891, 1.0691, 4.9616)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230F40 #2C400F
analogous
#0F1340 #230F40 #3B0F40
triadic
#230F40 #40230F #0F4023
tetradic
#230F40 #400F13 #2C400F #0F403B
square
#230F40 #400F13 #2C400F #0F403B
split-complementary
#230F40 #403B0F #13400F
monochromatic
#0E0619 #0E0619 #230F40 #3E1B72 #5926A3

Accessibility & contrast

On white

17.30
#230F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#230F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #230F40
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230F40#FFFFFF#000000##FFFFFF
##230F401.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#1C1B26
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #230f40;
/* rgb */ color: rgb(35, 15, 64);
/* oklch */ color: oklch(23.0% 0.088 297.8);
Tailwind
colors: {
  custom: {
    50: '#614f75',
    500: '#230f40',
    950: '#000000',
  },
}
SCSS
$custom: #230f40;
$custom-light: #614f75;
$custom-dark: #000000;
JSON
{
  "hex": "#230f40",
  "rgb": {
    "r": 35,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 264.49,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.23031,
    "c": 0.08828,
    "h": 297.8
  },
  "luminance": 0.01069
}

Semantic roles & 50–950 ramp

primary
#230F40
secondary
#5C7A30
accent
#E543A3
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #230F40

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

Preview Lab → · Contrast checker → · Palette generator →

#230F40 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva