#0C1A47#0C1A47

#0C1A47 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.8% C 0.086 H 266.6°. Best body text is #FFFFFF at 16.74:1 contrast (WCAG AA passes).

Color values

HEX#0C1A47
RGBrgb(12, 26, 71)
HSLhsl(226, 71%, 16%)
HSVhsv(226, 83%, 28%)
CMYKcmyk(83.1%, 63.4%, 0%, 72.2%)
CIE-LABlab(11.08, 12.96, -29.92)
CIE-LCHlch(11.08, 32.61, 293.43°)
OKLaboklab(23.82% -0.0052 -0.0863)
OKLCHoklch(23.82% 0.086 266.6)
XYZxyz(1.6579, 1.2717, 6.1181)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1A47 #47390C
analogous
#0C3847 #0C1A47 #1C0C47
triadic
#0C1A47 #470C1A #1A470C
tetradic
#0C1A47 #470C38 #47390C #0C471C
square
#0C1A47 #470C38 #47390C #0C471C
split-complementary
#0C1A47 #471C0C #38470C
monochromatic
#040A1A #040A1A #0C1A47 #152D7B #1E40B0

Accessibility & contrast

On white

16.74
#0C1A47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#0C1A47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1A47
16.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1A47#FFFFFF#000000##FFFFFF
##0C1A471.0016.741.2516.74
#FFFFFF16.741.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002049
Deuteranopia (green-blind)
#001B46
Tritanopia (blue-blind)
#00252D
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0c1a47;
/* rgb */ color: rgb(12, 26, 71);
/* oklch */ color: oklch(23.8% 0.086 266.6);
Tailwind
colors: {
  custom: {
    50: '#55567b',
    500: '#0c1a47',
    950: '#000000',
  },
}
SCSS
$custom: #0c1a47;
$custom-light: #55567b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1a47",
  "rgb": {
    "r": 12,
    "g": 26,
    "b": 71
  },
  "hsl": {
    "h": 225.763,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23823,
    "c": 0.08645,
    "h": 266.6
  },
  "luminance": 0.01272
}

Semantic roles & 50–950 ramp

primary
#0C1A47
secondary
#836E2C
accent
#C33AEE
background
#F5F5F7
surface
#E9E8EE
border
#C5C4C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1A47

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

Preview Lab → · Contrast checker → · Palette generator →

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