#0C1547#0C1547

#0C1547 is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.7% C 0.094 H 269.4°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#0C1547
RGBrgb(12, 21, 71)
HSLhsl(231, 71%, 16%)
HSVhsv(231, 83%, 28%)
CMYKcmyk(83.1%, 70.4%, 0%, 72.2%)
CIE-LABlab(9.56, 16.82, -32.40)
CIE-LCHlch(9.56, 36.51, 297.44°)
OKLaboklab(22.69% -0.001 -0.0937)
OKLCHoklch(22.69% 0.094 269.4)
XYZxyz(1.5567, 1.0693, 6.0844)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1547 #473E0C
analogous
#0C3347 #0C1547 #210C47
triadic
#0C1547 #470C15 #15470C
tetradic
#0C1547 #470C33 #473E0C #0C4721
square
#0C1547 #470C33 #473E0C #0C4721
split-complementary
#0C1547 #47210C #33470C
monochromatic
#04081A #04081A #0C1547 #15247B #1E34B0

Accessibility & contrast

On white

17.30
#0C1547 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0C1547 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1547
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1547#FFFFFF#000000##FFFFFF
##0C15471.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D49
Deuteranopia (green-blind)
#001846
Tritanopia (blue-blind)
#00222B
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c1547;
/* rgb */ color: rgb(12, 21, 71);
/* oklch */ color: oklch(22.7% 0.094 269.4);
Tailwind
colors: {
  custom: {
    50: '#56527b',
    500: '#0c1547',
    950: '#000000',
  },
}
SCSS
$custom: #0c1547;
$custom-light: #56527b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1547",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 71
  },
  "hsl": {
    "h": 230.847,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.22692,
    "c": 0.09367,
    "h": 269.4
  },
  "luminance": 0.01069
}

Semantic roles & 50–950 ramp

primary
#0C1547
secondary
#83762C
accent
#D23AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030209
muted
#78787B

Preview Lab

Preview with #0C1547

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

Preview Lab → · Contrast checker → · Palette generator →

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