#0C0F2E#0C0F2E

#0C0F2E is a very dark, moderate blue. Relative luminance 0.006; OKLCH L 18.8% C 0.061 H 274.7°. Best body text is #FFFFFF at 18.69:1 contrast (WCAG AA passes).

Color values

HEX#0C0F2E
RGBrgb(12, 15, 46)
HSLhsl(235, 59%, 11%)
HSVhsv(235, 74%, 18%)
CMYKcmyk(73.9%, 67.4%, 0%, 82%)
CIE-LABlab(5.57, 9.38, -20.84)
CIE-LCHlch(5.57, 22.85, 294.23°)
OKLaboklab(18.76% 0.005 -0.0613)
OKLCHoklch(18.76% 0.061 274.7)
XYZxyz(0.8154, 0.6170, 2.6604)
Luminance0.0062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0F2E #2E2B0C
analogous
#0C202E #0C0F2E #1A0C2E
triadic
#0C0F2E #2E0C0F #0F2E0C
tetradic
#0C0F2E #2E0C20 #2E2B0C #0C2E1A
square
#0C0F2E #2E0C20 #2E2B0C #0C2E1A
split-complementary
#0C0F2E #2E1A0C #202E0C
monochromatic
#060818 #060818 #0C0F2E #191F5F #252F8F

Accessibility & contrast

On white

18.69
#0C0F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#0C0F2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0F2E
18.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0F2E#FFFFFF#000000##FFFFFF
##0C0F2E1.0018.691.1218.69
#FFFFFF18.691.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00142F
Deuteranopia (green-blind)
#00112D
Tritanopia (blue-blind)
#00161C
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #0c0f2e;
/* rgb */ color: rgb(12, 15, 46);
/* oklch */ color: oklch(18.8% 0.061 274.7);
Tailwind
colors: {
  custom: {
    50: '#4e4d67',
    500: '#0c0f2e',
    950: '#000000',
  },
}
SCSS
$custom: #0c0f2e;
$custom-light: #4e4d67;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0f2e",
  "rgb": {
    "r": 12,
    "g": 15,
    "b": 46
  },
  "hsl": {
    "h": 234.706,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.18759,
    "c": 0.06148,
    "h": 274.7
  },
  "luminance": 0.00617
}

Semantic roles & 50–950 ramp

primary
#0C0F2E
secondary
#6A642C
accent
#D446E2
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C0F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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