#0C0A2E#0C0A2E

#0C0A2E is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 17.6% C 0.070 H 279.0°. Best body text is #FFFFFF at 19.12:1 contrast (WCAG AA passes).

Color values

HEX#0C0A2E
RGBrgb(12, 10, 46)
HSLhsl(243, 64%, 11%)
HSVhsv(243, 78%, 18%)
CMYKcmyk(73.9%, 78.3%, 0%, 82%)
CIE-LABlab(4.45, 11.68, -22.63)
CIE-LCHlch(4.45, 25.46, 297.30°)
OKLaboklab(17.62% 0.0109 -0.0687)
OKLCHoklch(17.62% 0.07 279)
XYZxyz(0.7531, 0.4924, 2.6396)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0A2E #2C2E0A
analogous
#0A1A2E #0C0A2E #1E0A2E
triadic
#0C0A2E #2E0C0A #0A2E0C
tetradic
#0C0A2E #2E0A1A #2C2E0A #0A2E1E
square
#0C0A2E #2E0A1A #2C2E0A #0A2E1E
split-complementary
#0C0A2E #2E1E0A #1A2E0A
monochromatic
#070519 #070519 #0C0A2E #191560 #262093

Accessibility & contrast

On white

19.12
#0C0A2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#0C0A2E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0A2E
19.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0A2E#FFFFFF#000000##FFFFFF
##0C0A2E1.0019.121.1019.12
#FFFFFF19.121.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112F
Deuteranopia (green-blind)
#000E2D
Tritanopia (blue-blind)
#00131A
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #0c0a2e;
/* rgb */ color: rgb(12, 10, 46);
/* oklch */ color: oklch(17.6% 0.070 279.0);
Tailwind
colors: {
  custom: {
    50: '#4e4b67',
    500: '#0c0a2e',
    950: '#000000',
  },
}
SCSS
$custom: #0c0a2e;
$custom-light: #4e4b67;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0a2e",
  "rgb": {
    "r": 12,
    "g": 10,
    "b": 46
  },
  "hsl": {
    "h": 243.333,
    "s": 64.286,
    "l": 10.98
  },
  "oklch": {
    "l": 0.17622,
    "c": 0.06954,
    "h": 279
  },
  "luminance": 0.00493
}

Semantic roles & 50–950 ramp

primary
#0C0A2E
secondary
#676B29
accent
#E741DE
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020106
muted
#78777A

Preview Lab

Preview with #0C0A2E

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

Preview Lab → · Contrast checker → · Palette generator →

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