#0C1A42#0C1A42

#0C1A42 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.3% C 0.078 H 265.9°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#0C1A42
RGBrgb(12, 26, 66)
HSLhsl(224, 69%, 15%)
HSVhsv(224, 82%, 26%)
CMYKcmyk(81.8%, 60.6%, 0%, 74.1%)
CIE-LABlab(10.63, 10.74, -27.14)
CIE-LCHlch(10.63, 29.19, 291.58°)
OKLaboklab(23.35% -0.0055 -0.0781)
OKLCHoklch(23.35% 0.078 265.9)
XYZxyz(1.5040, 1.2101, 5.3075)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1A42 #42340C
analogous
#0C3542 #0C1A42 #190C42
triadic
#0C1A42 #420C1A #1A420C
tetradic
#0C1A42 #420C35 #42340C #0C4219
square
#0C1A42 #420C35 #42340C #0C4219
split-complementary
#0C1A42 #42190C #35420C
monochromatic
#050A1A #050A1A #0C1A42 #152E76 #1F43AA

Accessibility & contrast

On white

16.91
#0C1A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#0C1A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1A42
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1A42#FFFFFF#000000##FFFFFF
##0C1A421.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011F43
Deuteranopia (green-blind)
#001A41
Tritanopia (blue-blind)
#00242B
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0c1a42;
/* rgb */ color: rgb(12, 26, 66);
/* oklch */ color: oklch(23.3% 0.078 265.9);
Tailwind
colors: {
  custom: {
    50: '#545677',
    500: '#0c1a42',
    950: '#000000',
  },
}
SCSS
$custom: #0c1a42;
$custom-light: #545677;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1a42",
  "rgb": {
    "r": 12,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 224.444,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.23348,
    "c": 0.07833,
    "h": 265.9
  },
  "luminance": 0.0121
}

Semantic roles & 50–950 ramp

primary
#0C1A42
secondary
#7E692C
accent
#BE3CEC
background
#F5F4F7
surface
#E9E8ED
border
#C5C4C8
text
#030308
muted
#78787B

Preview Lab

Preview with #0C1A42

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

Preview Lab → · Contrast checker → · Palette generator →

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