#0C0F3E#0C0F3E

#0C0F3E is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.4% C 0.088 H 272.8°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#0C0F3E
RGBrgb(12, 15, 62)
HSLhsl(236, 68%, 15%)
HSVhsv(236, 81%, 24%)
CMYKcmyk(80.6%, 75.8%, 0%, 75.7%)
CIE-LABlab(6.93, 17.31, -30.33)
CIE-LCHlch(6.93, 34.92, 299.71°)
OKLaboklab(20.44% 0.0043 -0.0879)
OKLCHoklch(20.44% 0.088 272.8)
XYZxyz(1.1917, 0.7675, 4.6418)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0F3E #3E3B0C
analogous
#0C283E #0C0F3E #220C3E
triadic
#0C0F3E #3E0C0F #0F3E0C
tetradic
#0C0F3E #3E0C28 #3E3B0C #0C3E22
square
#0C0F3E #3E0C28 #3E3B0C #0C3E22
split-complementary
#0C0F3E #3E220C #283E0C
monochromatic
#05061A #05061A #0C0F3E #161B71 #2028A5

Accessibility & contrast

On white

18.20
#0C0F3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0F3E
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0F3E#FFFFFF#000000##FFFFFF
##0C0F3E1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00183F
Deuteranopia (green-blind)
#00133D
Tritanopia (blue-blind)
#001B24
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #0c0f3e;
/* rgb */ color: rgb(12, 15, 62);
/* oklch */ color: oklch(20.4% 0.088 272.8);
Tailwind
colors: {
  custom: {
    50: '#544d74',
    500: '#0c0f3e',
    950: '#000000',
  },
}
SCSS
$custom: #0c0f3e;
$custom-light: #544d74;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0f3e",
  "rgb": {
    "r": 12,
    "g": 15,
    "b": 62
  },
  "hsl": {
    "h": 236.4,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.20441,
    "c": 0.088,
    "h": 272.8
  },
  "luminance": 0.00768
}

Semantic roles & 50–950 ramp

primary
#0C0F3E
secondary
#7A752C
accent
#E03DEA
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0C0F3E

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

Preview Lab → · Contrast checker → · Palette generator →

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