#0C0F49#0C0F49

#0C0F49 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.7% C 0.105 H 271.5°. Best body text is #FFFFFF at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#0C0F49
RGBrgb(12, 15, 73)
HSLhsl(237, 72%, 17%)
HSVhsv(237, 84%, 29%)
CMYKcmyk(83.6%, 79.5%, 0%, 71.4%)
CIE-LABlab(8.14, 22.07, -36.13)
CIE-LCHlch(8.14, 42.34, 301.41°)
OKLaboklab(21.73% 0.0028 -0.1046)
OKLCHoklch(21.73% 0.105 271.5)
XYZxyz(1.5246, 0.9007, 6.3955)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0F49 #49460C
analogous
#0C2E49 #0C0F49 #280C49
triadic
#0C0F49 #490C0F #0F490C
tetradic
#0C0F49 #490C2E #49460C #0C4928
square
#0C0F49 #490C2E #49460C #0C4928
split-complementary
#0C0F49 #49280C #2E490C
monochromatic
#04051A #04051A #0C0F49 #151A7E #1D25B2

Accessibility & contrast

On white

17.79
#0C0F49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0F49
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0F49#FFFFFF#000000##FFFFFF
##0C0F491.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0f49;
/* rgb */ color: rgb(12, 15, 73);
/* oklch */ color: oklch(21.7% 0.105 271.5);
Tailwind
colors: {
  custom: {
    50: '#574d7c',
    500: '#0c0f49',
    950: '#000000',
  },
}
SCSS
$custom: #0c0f49;
$custom-light: #574d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0f49",
  "rgb": {
    "r": 12,
    "g": 15,
    "b": 73
  },
  "hsl": {
    "h": 237.049,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.21726,
    "c": 0.10462,
    "h": 271.5
  },
  "luminance": 0.00901
}

Semantic roles & 50–950 ramp

primary
#0C0F49
secondary
#85802C
accent
#E639EE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #0C0F49

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

Preview Lab → · Contrast checker → · Palette generator →

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