#0F0C51#0F0C51

#0F0C51 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.4% C 0.118 H 273.2°. Best body text is #FFFFFF at 17.62:1 contrast (WCAG AA passes).

Color values

HEX#0F0C51
RGBrgb(15, 12, 81)
HSLhsl(243, 74%, 18%)
HSVhsv(243, 85%, 32%)
CMYKcmyk(81.5%, 85.2%, 0%, 68.2%)
CIE-LABlab(8.64, 27.39, -40.84)
CIE-LCHlch(8.64, 49.17, 303.85°)
OKLaboklab(22.43% 0.0066 -0.1182)
OKLCHoklch(22.43% 0.118 273.2)
XYZxyz(1.8132, 0.9584, 7.8724)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0C51 #4E510C
analogous
#0C2B51 #0F0C51 #310C51
triadic
#0F0C51 #510F0C #0C510F
tetradic
#0F0C51 #510C2B #4E510C #0C5131
square
#0F0C51 #510C2B #4E510C #0C5131
split-complementary
#0F0C51 #51310C #2B510C
monochromatic
#05041B #05041C #0F0C51 #191486 #231CBC

Accessibility & contrast

On white

17.62
#0F0C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0F0C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0C51
17.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0C51#FFFFFF#000000##FFFFFF
##0F0C511.0017.621.1917.62
#FFFFFF17.621.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C53
Deuteranopia (green-blind)
#001550
Tritanopia (blue-blind)
#00212E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0f0c51;
/* rgb */ color: rgb(15, 12, 81);
/* oklch */ color: oklch(22.4% 0.118 273.2);
Tailwind
colors: {
  custom: {
    50: '#5b4c83',
    500: '#0f0c51',
    950: '#000000',
  },
}
SCSS
$custom: #0f0c51;
$custom-light: #5b4c83;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0c51",
  "rgb": {
    "r": 15,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 242.609,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.22431,
    "c": 0.11835,
    "h": 273.2
  },
  "luminance": 0.00959
}

Semantic roles & 50–950 ramp

primary
#0F0C51
secondary
#888C2C
accent
#F137E9
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010B
muted
#79777C

Preview Lab

Preview with #0F0C51

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

Preview Lab → · Contrast checker → · Palette generator →

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