#0F0231#0F0231

#0F0231 is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.5% C 0.088 H 286.8°. Best body text is #FFFFFF at 19.56:1 contrast (WCAG AA passes).

Color values

HEX#0F0231
RGBrgb(15, 2, 49)
HSLhsl(257, 92%, 10%)
HSVhsv(257, 96%, 19%)
CMYKcmyk(69.4%, 95.9%, 0%, 80.8%)
CIE-LABlab(3.31, 17.38, -26.67)
CIE-LCHlch(3.31, 31.84, 303.10°)
OKLaboklab(16.51% 0.0254 -0.0839)
OKLCHoklch(16.51% 0.088 286.8)
XYZxyz(0.7729, 0.3667, 2.9352)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0231 #243102
analogous
#020C31 #0F0231 #270231
triadic
#0F0231 #310F02 #02310F
tetradic
#0F0231 #31020C #243102 #023127
square
#0F0231 #31020C #243102 #023127
split-complementary
#0F0231 #312702 #0C3102
monochromatic
#09011D #09011D #0F0231 #21046C #3307A7

Accessibility & contrast

On white

19.56
#0F0231 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#0F0231 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0231
19.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0231#FFFFFF#000000##FFFFFF
##0F02311.0019.561.0719.56
#FFFFFF19.561.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D32
Deuteranopia (green-blind)
#000B30
Tritanopia (blue-blind)
#020F19
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0f0231;
/* rgb */ color: rgb(15, 2, 49);
/* oklch */ color: oklch(16.5% 0.088 286.8);
Tailwind
colors: {
  custom: {
    50: '#504769',
    500: '#0f0231',
    950: '#000000',
  },
}
SCSS
$custom: #0f0231;
$custom-light: #504769;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0231",
  "rgb": {
    "r": 15,
    "g": 2,
    "b": 49
  },
  "hsl": {
    "h": 256.596,
    "s": 92.157,
    "l": 10
  },
  "oklch": {
    "l": 0.16511,
    "c": 0.08763,
    "h": 286.8
  },
  "luminance": 0.00367
}

Semantic roles & 50–950 ramp

primary
#0F0231
secondary
#5C7519
accent
#FF29C4
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0F0231

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

Preview Lab → · Contrast checker → · Palette generator →

#0F0231 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva