#0C0F48#0C0F48

#0C0F48 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.6% C 0.103 H 271.6°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#0C0F48
RGBrgb(12, 15, 72)
HSLhsl(237, 71%, 16%)
HSVhsv(237, 83%, 28%)
CMYKcmyk(83.3%, 79.2%, 0%, 71.8%)
CIE-LABlab(8.02, 21.66, -35.63)
CIE-LCHlch(8.02, 41.70, 301.30°)
OKLaboklab(21.61% 0.0029 -0.1031)
OKLCHoklch(21.61% 0.103 271.6)
XYZxyz(1.4917, 0.8875, 6.2223)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0F48 #48450C
analogous
#0C2D48 #0C0F48 #270C48
triadic
#0C0F48 #480C0F #0F480C
tetradic
#0C0F48 #480C2D #48450C #0C4827
square
#0C0F48 #480C2D #48450C #0C4827
split-complementary
#0C0F48 #48270C #2D480C
monochromatic
#04051A #04051A #0C0F48 #151A7C #1D25B1

Accessibility & contrast

On white

17.83
#0C0F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0F48
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0F48#FFFFFF#000000##FFFFFF
##0C0F481.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A4A
Deuteranopia (green-blind)
#001547
Tritanopia (blue-blind)
#001F2A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0c0f48;
/* rgb */ color: rgb(12, 15, 72);
/* oklch */ color: oklch(21.6% 0.103 271.6);
Tailwind
colors: {
  custom: {
    50: '#574d7c',
    500: '#0c0f48',
    950: '#000000',
  },
}
SCSS
$custom: #0c0f48;
$custom-light: #574d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0f48",
  "rgb": {
    "r": 12,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 237,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.21606,
    "c": 0.10315,
    "h": 271.6
  },
  "luminance": 0.00888
}

Semantic roles & 50–950 ramp

primary
#0C0F48
secondary
#847F2C
accent
#E53AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #0C0F48

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

Preview Lab → · Contrast checker → · Palette generator →

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