#0C1C4B#0C1C4B

#0C1C4B is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.7% C 0.090 H 265.8°. Best body text is #FFFFFF at 16.36:1 contrast (WCAG AA passes).

Color values

HEX#0C1C4B
RGBrgb(12, 28, 75)
HSLhsl(225, 72%, 17%)
HSVhsv(225, 84%, 29%)
CMYKcmyk(84%, 62.7%, 0%, 70.6%)
CIE-LABlab(12.07, 13.19, -31.08)
CIE-LCHlch(12.07, 33.76, 292.99°)
OKLaboklab(24.68% -0.0066 -0.0897)
OKLCHoklch(24.68% 0.09 265.8)
XYZxyz(1.8364, 1.4165, 6.8319)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1C4B #4B3B0C
analogous
#0C3C4B #0C1C4B #1C0C4B
triadic
#0C1C4B #4B0C1C #1C4B0C
tetradic
#0C1C4B #4B0C3C #4B3B0C #0C4B1C
square
#0C1C4B #4B0C3C #4B3B0C #0C4B1C
split-complementary
#0C1C4B #4B1C0C #3C4B0C
monochromatic
#040A1A #040A1A #0C1C4B #143080 #1D43B5

Accessibility & contrast

On white

16.36
#0C1C4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#0C1C4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1C4B
16.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1C4B#FFFFFF#000000##FFFFFF
##0C1C4B1.0016.361.2816.36
#FFFFFF16.361.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#001D4A
Tritanopia (blue-blind)
#002830
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1c4b;
/* rgb */ color: rgb(12, 28, 75);
/* oklch */ color: oklch(24.7% 0.090 265.8);
Tailwind
colors: {
  custom: {
    50: '#56577e',
    500: '#0c1c4b',
    950: '#000000',
  },
}
SCSS
$custom: #0c1c4b;
$custom-light: #56577e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1c4b",
  "rgb": {
    "r": 12,
    "g": 28,
    "b": 75
  },
  "hsl": {
    "h": 224.762,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24681,
    "c": 0.08993,
    "h": 265.8
  },
  "luminance": 0.01417
}

Semantic roles & 50–950 ramp

primary
#0C1C4B
secondary
#87702C
accent
#C139EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #0C1C4B

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

Preview Lab → · Contrast checker → · Palette generator →

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