#0C0F3D#0C0F3D

#0C0F3D is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.3% C 0.086 H 272.9°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#0C0F3D
RGBrgb(12, 15, 61)
HSLhsl(236, 67%, 14%)
HSVhsv(236, 80%, 24%)
CMYKcmyk(80.3%, 75.4%, 0%, 76.1%)
CIE-LABlab(6.83, 16.84, -29.77)
CIE-LCHlch(6.83, 34.21, 299.50°)
OKLaboklab(20.33% 0.0044 -0.0863)
OKLCHoklch(20.33% 0.086 272.9)
XYZxyz(1.1645, 0.7566, 4.4986)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0F3D #3D3A0C
analogous
#0C283D #0C0F3D #220C3D
triadic
#0C0F3D #3D0C0F #0F3D0C
tetradic
#0C0F3D #3D0C28 #3D3A0C #0C3D22
square
#0C0F3D #3D0C28 #3D3A0C #0C3D22
split-complementary
#0C0F3D #3D220C #283D0C
monochromatic
#05061A #05061A #0C0F3D #161C70 #2028A3

Accessibility & contrast

On white

18.24
#0C0F3D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#0C0F3D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0F3D
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0F3D#FFFFFF#000000##FFFFFF
##0C0F3D1.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00173E
Deuteranopia (green-blind)
#00133C
Tritanopia (blue-blind)
#001B24
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #0c0f3d;
/* rgb */ color: rgb(12, 15, 61);
/* oklch */ color: oklch(20.3% 0.086 272.9);
Tailwind
colors: {
  custom: {
    50: '#534d73',
    500: '#0c0f3d',
    950: '#000000',
  },
}
SCSS
$custom: #0c0f3d;
$custom-light: #534d73;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0f3d",
  "rgb": {
    "r": 12,
    "g": 15,
    "b": 61
  },
  "hsl": {
    "h": 236.327,
    "s": 67.123,
    "l": 14.314
  },
  "oklch": {
    "l": 0.20329,
    "c": 0.08643,
    "h": 272.9
  },
  "luminance": 0.00757
}

Semantic roles & 50–950 ramp

primary
#0C0F3D
secondary
#79742C
accent
#DF3EEA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0C0F3D

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

Preview Lab → · Contrast checker → · Palette generator →

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