#0F023A#0F023A

#0F023A is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.7% C 0.099 H 282.1°. Best body text is #FFFFFF at 19.27:1 contrast (WCAG AA passes).

Color values

HEX#0F023A
RGBrgb(15, 2, 58)
HSLhsl(254, 93%, 12%)
HSVhsv(254, 97%, 23%)
CMYKcmyk(74.1%, 96.6%, 0%, 77.3%)
CIE-LABlab(4.07, 22.41, -32.09)
CIE-LCHlch(4.07, 39.14, 304.92°)
OKLaboklab(17.74% 0.0209 -0.0971)
OKLCHoklch(17.74% 0.099 282.1)
XYZxyz(0.9822, 0.4504, 4.0373)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F023A #2D3A02
analogous
#02113A #0F023A #2B023A
triadic
#0F023A #3A0F02 #023A0F
tetradic
#0F023A #3A0211 #2D3A02 #023A2B
square
#0F023A #3A0211 #2D3A02 #023A2B
split-complementary
#0F023A #3A2B02 #113A02
monochromatic
#08011E #08011E #0F023A #1E0475 #2E06B0

Accessibility & contrast

On white

19.27
#0F023A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#0F023A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F023A
19.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F023A#FFFFFF#000000##FFFFFF
##0F023A1.0019.271.0919.27
#FFFFFF19.271.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00103C
Deuteranopia (green-blind)
#000C39
Tritanopia (blue-blind)
#00131E
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #0f023a;
/* rgb */ color: rgb(15, 2, 58);
/* oklch */ color: oklch(17.7% 0.099 282.1);
Tailwind
colors: {
  custom: {
    50: '#544671',
    500: '#0f023a',
    950: '#000000',
  },
}
SCSS
$custom: #0f023a;
$custom-light: #544671;
$custom-dark: #000000;
JSON
{
  "hex": "#0f023a",
  "rgb": {
    "r": 15,
    "g": 2,
    "b": 58
  },
  "hsl": {
    "h": 253.929,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.17741,
    "c": 0.0993,
    "h": 282.1
  },
  "luminance": 0.0045
}

Semantic roles & 50–950 ramp

primary
#0F023A
secondary
#667D1A
accent
#FF29CD
background
#F5F3F6
surface
#E9E5EC
border
#C5C1C7
text
#030008
muted
#78777B

Preview Lab

Preview with #0F023A

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

Preview Lab → · Contrast checker → · Palette generator →

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