#0C1947#0C1947

#0C1947 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.6% C 0.088 H 267.2°. Best body text is #FFFFFF at 16.86:1 contrast (WCAG AA passes).

Color values

HEX#0C1947
RGBrgb(12, 25, 71)
HSLhsl(227, 71%, 16%)
HSVhsv(227, 83%, 28%)
CMYKcmyk(83.1%, 64.8%, 0%, 72.2%)
CIE-LABlab(10.76, 13.74, -30.43)
CIE-LCHlch(10.76, 33.39, 294.30°)
OKLaboklab(23.59% -0.0043 -0.0878)
OKLCHoklch(23.59% 0.088 267.2)
XYZxyz(1.6362, 1.2282, 6.1108)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1947 #473A0C
analogous
#0C3747 #0C1947 #1D0C47
triadic
#0C1947 #470C19 #19470C
tetradic
#0C1947 #470C37 #473A0C #0C471D
square
#0C1947 #470C37 #473A0C #0C471D
split-complementary
#0C1947 #471D0C #37470C
monochromatic
#04091A #04091A #0C1947 #152B7B #1E3EB0

Accessibility & contrast

On white

16.86
#0C1947 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1947
16.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1947#FFFFFF#000000##FFFFFF
##0C19471.0016.861.2516.86
#FFFFFF16.861.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002049
Deuteranopia (green-blind)
#001A46
Tritanopia (blue-blind)
#00242D
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0c1947;
/* rgb */ color: rgb(12, 25, 71);
/* oklch */ color: oklch(23.6% 0.088 267.2);
Tailwind
colors: {
  custom: {
    50: '#55557b',
    500: '#0c1947',
    950: '#000000',
  },
}
SCSS
$custom: #0c1947;
$custom-light: #55557b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1947",
  "rgb": {
    "r": 12,
    "g": 25,
    "b": 71
  },
  "hsl": {
    "h": 226.78,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.23589,
    "c": 0.08791,
    "h": 267.2
  },
  "luminance": 0.01228
}

Semantic roles & 50–950 ramp

primary
#0C1947
secondary
#83702C
accent
#C63AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1947

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

Preview Lab → · Contrast checker → · Palette generator →

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