#0F0C4D#0F0C4D

#0F0C4D is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.9% C 0.113 H 273.9°. Best body text is #FFFFFF at 17.80:1 contrast (WCAG AA passes).

Color values

HEX#0F0C4D
RGBrgb(15, 12, 77)
HSLhsl(243, 73%, 17%)
HSVhsv(243, 84%, 30%)
CMYKcmyk(80.5%, 84.4%, 0%, 69.8%)
CIE-LABlab(8.13, 25.91, -38.92)
CIE-LCHlch(8.13, 46.75, 303.66°)
OKLaboklab(21.92% 0.0076 -0.1126)
OKLCHoklch(21.92% 0.113 273.9)
XYZxyz(1.6676, 0.9002, 7.1056)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0C4D #4A4D0C
analogous
#0C2A4D #0F0C4D #2F0C4D
triadic
#0F0C4D #4D0F0C #0C4D0F
tetradic
#0F0C4D #4D0C2A #4A4D0C #0C4D2F
square
#0F0C4D #4D0C2A #4A4D0C #0C4D2F
split-complementary
#0F0C4D #4D2F0C #2A4D0C
monochromatic
#05041A #05041A #0F0C4D #191482 #241DB7

Accessibility & contrast

On white

17.80
#0F0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0C4D
17.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0C4D#FFFFFF#000000##FFFFFF
##0F0C4D1.0017.801.1817.80
#FFFFFF17.801.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4F
Deuteranopia (green-blind)
#00154C
Tritanopia (blue-blind)
#001F2C
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0f0c4d;
/* rgb */ color: rgb(15, 12, 77);
/* oklch */ color: oklch(21.9% 0.113 273.9);
Tailwind
colors: {
  custom: {
    50: '#5a4c80',
    500: '#0f0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #0f0c4d;
$custom-light: #5a4c80;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0c4d",
  "rgb": {
    "r": 15,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 242.769,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.21924,
    "c": 0.11284,
    "h": 273.9
  },
  "luminance": 0.009
}

Semantic roles & 50–950 ramp

primary
#0F0C4D
secondary
#84892C
accent
#F038E7
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0F0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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