#0C1D45#0C1D45

#0C1D45 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.4% C 0.079 H 264.1°. Best body text is #FFFFFF at 16.44:1 contrast (WCAG AA passes).

Color values

HEX#0C1D45
RGBrgb(12, 29, 69)
HSLhsl(222, 70%, 16%)
HSVhsv(222, 83%, 27%)
CMYKcmyk(82.6%, 58%, 0%, 72.9%)
CIE-LABlab(11.87, 9.74, -27.24)
CIE-LCHlch(11.87, 28.93, 289.66°)
OKLaboklab(24.37% -0.0081 -0.0784)
OKLCHoklch(24.37% 0.079 264.1)
XYZxyz(1.6648, 1.3864, 5.8089)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1D45 #45340C
analogous
#0C3945 #0C1D45 #170C45
triadic
#0C1D45 #450C1D #1D450C
tetradic
#0C1D45 #450C39 #45340C #0C4517
square
#0C1D45 #450C39 #45340C #0C4517
split-complementary
#0C1D45 #45170C #39450C
monochromatic
#050B1A #050B1A #0C1D45 #153379 #1E49AD

Accessibility & contrast

On white

16.44
#0C1D45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1D45
16.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1D45#FFFFFF#000000##FFFFFF
##0C1D451.0016.441.2816.44
#FFFFFF16.441.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042246
Deuteranopia (green-blind)
#001D44
Tritanopia (blue-blind)
#00272D
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #0c1d45;
/* rgb */ color: rgb(12, 29, 69);
/* oklch */ color: oklch(24.4% 0.079 264.1);
Tailwind
colors: {
  custom: {
    50: '#545879',
    500: '#0c1d45',
    950: '#000000',
  },
}
SCSS
$custom: #0c1d45;
$custom-light: #545879;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1d45",
  "rgb": {
    "r": 12,
    "g": 29,
    "b": 69
  },
  "hsl": {
    "h": 222.105,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24365,
    "c": 0.07879,
    "h": 264.1
  },
  "luminance": 0.01387
}

Semantic roles & 50–950 ramp

primary
#0C1D45
secondary
#81682C
accent
#B83BED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1D45

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

Preview Lab → · Contrast checker → · Palette generator →

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