#0F0C4A#0F0C4A

#0F0C4A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.5% C 0.109 H 274.4°. Best body text is #FFFFFF at 17.92:1 contrast (WCAG AA passes).

Color values

HEX#0F0C4A
RGBrgb(15, 12, 74)
HSLhsl(243, 72%, 17%)
HSVhsv(243, 84%, 29%)
CMYKcmyk(79.7%, 83.8%, 0%, 71%)
CIE-LABlab(7.76, 24.78, -37.45)
CIE-LCHlch(7.76, 44.90, 303.49°)
OKLaboklab(21.55% 0.0084 -0.1083)
OKLCHoklch(21.55% 0.109 274.4)
XYZxyz(1.5641, 0.8588, 6.5606)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0C4A #474A0C
analogous
#0C284A #0F0C4A #2E0C4A
triadic
#0F0C4A #4A0F0C #0C4A0F
tetradic
#0F0C4A #4A0C28 #474A0C #0C4A2E
square
#0F0C4A #4A0C28 #474A0C #0C4A2E
split-complementary
#0F0C4A #4A2E0C #284A0C
monochromatic
#05041A #05041A #0F0C4A #1A157F #241DB3

Accessibility & contrast

On white

17.92
#0F0C4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0F0C4A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0C4A
17.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0C4A#FFFFFF#000000##FFFFFF
##0F0C4A1.0017.921.1717.92
#FFFFFF17.921.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4C
Deuteranopia (green-blind)
#001449
Tritanopia (blue-blind)
#001E2A
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0f0c4a;
/* rgb */ color: rgb(15, 12, 74);
/* oklch */ color: oklch(21.5% 0.109 274.4);
Tailwind
colors: {
  custom: {
    50: '#594c7d',
    500: '#0f0c4a',
    950: '#000000',
  },
}
SCSS
$custom: #0f0c4a;
$custom-light: #594c7d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0c4a",
  "rgb": {
    "r": 15,
    "g": 12,
    "b": 74
  },
  "hsl": {
    "h": 242.903,
    "s": 72.093,
    "l": 16.863
  },
  "oklch": {
    "l": 0.21548,
    "c": 0.10864,
    "h": 274.4
  },
  "luminance": 0.00859
}

Semantic roles & 50–950 ramp

primary
#0F0C4A
secondary
#81862C
accent
#EF39E6
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0F0C4A

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

Preview Lab → · Contrast checker → · Palette generator →

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