#0C0F44#0C0F44

#0C0F44 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.1% C 0.097 H 272.1°. Best body text is #FFFFFF at 17.99:1 contrast (WCAG AA passes).

Color values

HEX#0C0F44
RGBrgb(12, 15, 68)
HSLhsl(237, 70%, 16%)
HSVhsv(237, 82%, 27%)
CMYKcmyk(82.4%, 77.9%, 0%, 73.3%)
CIE-LABlab(7.56, 20.00, -33.57)
CIE-LCHlch(7.56, 39.07, 300.78°)
OKLaboklab(21.13% 0.0036 -0.0971)
OKLCHoklch(21.13% 0.097 272.1)
XYZxyz(1.3655, 0.8370, 5.5573)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0F44 #44410C
analogous
#0C2B44 #0C0F44 #250C44
triadic
#0C0F44 #440C0F #0F440C
tetradic
#0C0F44 #440C2B #44410C #0C4425
square
#0C0F44 #440C2B #44410C #0C4425
split-complementary
#0C0F44 #44250C #2B440C
monochromatic
#05061A #05061A #0C0F44 #151A78 #1E26AC

Accessibility & contrast

On white

17.99
#0C0F44 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0F44
17.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0F44#FFFFFF#000000##FFFFFF
##0C0F441.0017.991.1717.99
#FFFFFF17.991.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001946
Deuteranopia (green-blind)
#001443
Tritanopia (blue-blind)
#001E28
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0c0f44;
/* rgb */ color: rgb(12, 15, 68);
/* oklch */ color: oklch(21.1% 0.097 272.1);
Tailwind
colors: {
  custom: {
    50: '#564d79',
    500: '#0c0f44',
    950: '#000000',
  },
}
SCSS
$custom: #0c0f44;
$custom-light: #564d79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0f44",
  "rgb": {
    "r": 12,
    "g": 15,
    "b": 68
  },
  "hsl": {
    "h": 236.786,
    "s": 70,
    "l": 15.686
  },
  "oklch": {
    "l": 0.21132,
    "c": 0.0972,
    "h": 272.1
  },
  "luminance": 0.00837
}

Semantic roles & 50–950 ramp

primary
#0C0F44
secondary
#807B2C
accent
#E33BED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C0F44

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

Preview Lab → · Contrast checker → · Palette generator →

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