#0C1E47#0C1E47

#0C1E47 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.8% C 0.081 H 263.7°. Best body text is #FFFFFF at 16.25:1 contrast (WCAG AA passes).

Color values

HEX#0C1E47
RGBrgb(12, 30, 71)
HSLhsl(222, 71%, 16%)
HSVhsv(222, 83%, 28%)
CMYKcmyk(83.1%, 57.7%, 0%, 72.2%)
CIE-LABlab(12.36, 9.86, -27.84)
CIE-LCHlch(12.36, 29.53, 289.50°)
OKLaboklab(24.79% -0.0088 -0.0801)
OKLCHoklch(24.79% 0.081 263.7)
XYZxyz(1.7528, 1.4614, 6.1497)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1E47 #47350C
analogous
#0C3C47 #0C1E47 #180C47
triadic
#0C1E47 #470C1E #1E470C
tetradic
#0C1E47 #470C3C #47350C #0C4718
square
#0C1E47 #470C3C #47350C #0C4718
split-complementary
#0C1E47 #47180C #3C470C
monochromatic
#040B1A #040B1A #0C1E47 #15347B #1E4AB0

Accessibility & contrast

On white

16.25
#0C1E47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#0C1E47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1E47
16.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1E47#FFFFFF#000000##FFFFFF
##0C1E471.0016.251.2916.25
#FFFFFF16.251.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042348
Deuteranopia (green-blind)
#001E46
Tritanopia (blue-blind)
#00282F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1e47;
/* rgb */ color: rgb(12, 30, 71);
/* oklch */ color: oklch(24.8% 0.081 263.7);
Tailwind
colors: {
  custom: {
    50: '#55597a',
    500: '#0c1e47',
    950: '#000000',
  },
}
SCSS
$custom: #0c1e47;
$custom-light: #55597a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1e47",
  "rgb": {
    "r": 12,
    "g": 30,
    "b": 71
  },
  "hsl": {
    "h": 221.695,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.24794,
    "c": 0.08059,
    "h": 263.7
  },
  "luminance": 0.01462
}

Semantic roles & 50–950 ramp

primary
#0C1E47
secondary
#83682C
accent
#B73AEE
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1E47

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

Preview Lab → · Contrast checker → · Palette generator →

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