#0F043B#0F043B

#0F043B is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.3% C 0.098 H 281.0°. Best body text is #FFFFFF at 19.08:1 contrast (WCAG AA passes).

Color values

HEX#0F043B
RGBrgb(15, 4, 59)
HSLhsl(252, 87%, 12%)
HSVhsv(252, 93%, 23%)
CMYKcmyk(74.6%, 93.2%, 0%, 76.9%)
CIE-LABlab(4.55, 22.04, -32.03)
CIE-LCHlch(4.55, 38.88, 304.53°)
OKLaboklab(18.28% 0.0186 -0.0957)
OKLCHoklch(18.28% 0.098 281)
XYZxyz(1.0296, 0.5041, 4.1799)
Luminance0.0050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F043B #303B04
analogous
#04153B #0F043B #2B043B
triadic
#0F043B #3B0F04 #043B0F
tetradic
#0F043B #3B0415 #303B04 #043B2B
square
#0F043B #3B0415 #303B04 #043B2B
split-complementary
#0F043B #3B2B04 #153B04
monochromatic
#07021D #07021D #0F043B #1E0874 #2C0CAE

Accessibility & contrast

On white

19.08
#0F043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#0F043B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F043B
19.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F043B#FFFFFF#000000##FFFFFF
##0F043B1.0019.081.1019.08
#FFFFFF19.081.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00123D
Deuteranopia (green-blind)
#000E3A
Tritanopia (blue-blind)
#001420
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #0f043b;
/* rgb */ color: rgb(15, 4, 59);
/* oklch */ color: oklch(18.3% 0.098 281.0);
Tailwind
colors: {
  custom: {
    50: '#544772',
    500: '#0f043b',
    950: '#000000',
  },
}
SCSS
$custom: #0f043b;
$custom-light: #544772;
$custom-dark: #000000;
JSON
{
  "hex": "#0f043b",
  "rgb": {
    "r": 15,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 252,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.18281,
    "c": 0.09752,
    "h": 281
  },
  "luminance": 0.00504
}

Semantic roles & 50–950 ramp

primary
#0F043B
secondary
#6A7D1E
accent
#FD2AD3
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#030008
muted
#78777B

Preview Lab

Preview with #0F043B

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

Preview Lab → · Contrast checker → · Palette generator →

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