#0C1D4B#0C1D4B

#0C1D4B is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.9% C 0.088 H 265.1°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#0C1D4B
RGBrgb(12, 29, 75)
HSLhsl(224, 72%, 17%)
HSVhsv(224, 84%, 29%)
CMYKcmyk(84%, 61.3%, 0%, 70.6%)
CIE-LABlab(12.38, 12.42, -30.57)
CIE-LCHlch(12.38, 33.00, 292.10°)
OKLaboklab(24.92% -0.0075 -0.0882)
OKLCHoklch(24.92% 0.088 265.1)
XYZxyz(1.8605, 1.4647, 6.8399)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1D4B #4B3A0C
analogous
#0C3D4B #0C1D4B #1B0C4B
triadic
#0C1D4B #4B0C1D #1D4B0C
tetradic
#0C1D4B #4B0C3D #4B3A0C #0C4B1B
square
#0C1D4B #4B0C3D #4B3A0C #0C4B1B
split-complementary
#0C1D4B #4B1B0C #3D4B0C
monochromatic
#040A1A #040A1A #0C1D4B #143180 #1D46B5

Accessibility & contrast

On white

16.24
#0C1D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1D4B
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1D4B#FFFFFF#000000##FFFFFF
##0C1D4B1.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.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: #0c1d4b;
/* rgb */ color: rgb(12, 29, 75);
/* oklch */ color: oklch(24.9% 0.088 265.1);
Tailwind
colors: {
  custom: {
    50: '#56587e',
    500: '#0c1d4b',
    950: '#000000',
  },
}
SCSS
$custom: #0c1d4b;
$custom-light: #56587e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1d4b",
  "rgb": {
    "r": 12,
    "g": 29,
    "b": 75
  },
  "hsl": {
    "h": 223.81,
    "s": 72.414,
    "l": 17.059
  },
  "oklch": {
    "l": 0.24918,
    "c": 0.08848,
    "h": 265.1
  },
  "luminance": 0.01465
}

Semantic roles & 50–950 ramp

primary
#0C1D4B
secondary
#876E2C
accent
#BE39EF
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#03030A
muted
#78787C

Preview Lab

Preview with #0C1D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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