#0F0C4C#0F0C4C

#0F0C4C is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.8% C 0.111 H 274.1°. Best body text is #FFFFFF at 17.84:1 contrast (WCAG AA passes).

Color values

HEX#0F0C4C
RGBrgb(15, 12, 76)
HSLhsl(243, 73%, 17%)
HSVhsv(243, 84%, 30%)
CMYKcmyk(80.3%, 84.2%, 0%, 70.2%)
CIE-LABlab(8.00, 25.54, -38.43)
CIE-LCHlch(8.00, 46.14, 303.61°)
OKLaboklab(21.8% 0.0079 -0.1112)
OKLCHoklch(21.8% 0.111 274.1)
XYZxyz(1.6325, 0.8861, 6.9211)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0C4C #494C0C
analogous
#0C294C #0F0C4C #2F0C4C
triadic
#0F0C4C #4C0F0C #0C4C0F
tetradic
#0F0C4C #4C0C29 #494C0C #0C4C2F
square
#0F0C4C #4C0C29 #494C0C #0C4C2F
split-complementary
#0F0C4C #4C2F0C #294C0C
monochromatic
#05041A #05041A #0F0C4C #191481 #241DB6

Accessibility & contrast

On white

17.84
#0F0C4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0F0C4C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0C4C
17.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0C4C#FFFFFF#000000##FFFFFF
##0F0C4C1.0017.841.1817.84
#FFFFFF17.841.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4E
Deuteranopia (green-blind)
#00144B
Tritanopia (blue-blind)
#001F2B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0f0c4c;
/* rgb */ color: rgb(15, 12, 76);
/* oklch */ color: oklch(21.8% 0.111 274.1);
Tailwind
colors: {
  custom: {
    50: '#594c7f',
    500: '#0f0c4c',
    950: '#000000',
  },
}
SCSS
$custom: #0f0c4c;
$custom-light: #594c7f;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0c4c",
  "rgb": {
    "r": 15,
    "g": 12,
    "b": 76
  },
  "hsl": {
    "h": 242.813,
    "s": 72.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.21798,
    "c": 0.11145,
    "h": 274.1
  },
  "luminance": 0.00886
}

Semantic roles & 50–950 ramp

primary
#0F0C4C
secondary
#83882C
accent
#EF38E7
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0F0C4C

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

Preview Lab → · Contrast checker → · Palette generator →

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