#230740#230740

#230740 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.9% C 0.099 H 300.5°. Best body text is #FFFFFF at 17.86:1 contrast (WCAG AA passes).

Color values

HEX#230740
RGBrgb(35, 7, 64)
HSLhsl(269, 80%, 14%)
HSVhsv(269, 89%, 25%)
CMYKcmyk(45.3%, 89.1%, 0%, 74.9%)
CIE-LABlab(7.94, 27.41, -30.00)
CIE-LCHlch(7.94, 40.64, 312.41°)
OKLaboklab(21.89% 0.0504 -0.0858)
OKLCHoklch(21.89% 0.099 300.5)
XYZxyz(1.6943, 0.8794, 4.9300)
Luminance0.0088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#230740 #244007
analogous
#070740 #230740 #400740
triadic
#230740 #402307 #074023
tetradic
#230740 #400707 #244007 #074040
square
#230740 #400707 #244007 #074040
split-complementary
#230740 #404007 #074007
monochromatic
#0F031C #0F031C #230740 #410D77 #5F13AE

Accessibility & contrast

On white

17.86
#230740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #230740
17.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##230740#FFFFFF#000000##FFFFFF
##2307401.0017.861.1817.86
#FFFFFF17.861.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#1C1623
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #230740;
/* rgb */ color: rgb(35, 7, 64);
/* oklch */ color: oklch(21.9% 0.099 300.5);
Tailwind
colors: {
  custom: {
    50: '#624a75',
    500: '#230740',
    950: '#000000',
  },
}
SCSS
$custom: #230740;
$custom-light: #624a75;
$custom-dark: #000000;
JSON
{
  "hex": "#230740",
  "rgb": {
    "r": 35,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 269.474,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21892,
    "c": 0.09948,
    "h": 300.5
  },
  "luminance": 0.00879
}

Semantic roles & 50–950 ramp

primary
#230740
secondary
#527F24
accent
#F73196
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050108
muted
#7A777B

Preview Lab

Preview with #230740

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

Preview Lab → · Contrast checker → · Palette generator →

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