#0C1F45#0C1F45

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

Color values

HEX#0C1F45
RGBrgb(12, 31, 69)
HSLhsl(220, 70%, 16%)
HSVhsv(220, 83%, 27%)
CMYKcmyk(82.6%, 55.1%, 0%, 72.9%)
CIE-LABlab(12.53, 8.18, -26.18)
CIE-LCHlch(12.53, 27.43, 287.36°)
OKLaboklab(24.87% -0.0101 -0.0752)
OKLCHoklch(24.87% 0.076 262.3)
XYZxyz(1.7154, 1.4876, 5.8258)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1F45 #45320C
analogous
#0C3B45 #0C1F45 #150C45
triadic
#0C1F45 #450C1F #1F450C
tetradic
#0C1F45 #450C3B #45320C #0C4515
square
#0C1F45 #450C3B #45320C #0C4515
split-complementary
#0C1F45 #45150C #3B450C
monochromatic
#050C1A #050C1A #0C1F45 #153679 #1E4EAD

Accessibility & contrast

On white

16.18
#0C1F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0C1F45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1F45
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1F45#FFFFFF#000000##FFFFFF
##0C1F451.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092346
Deuteranopia (green-blind)
#001E44
Tritanopia (blue-blind)
#00282E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c1f45;
/* rgb */ color: rgb(12, 31, 69);
/* oklch */ color: oklch(24.9% 0.076 262.3);
Tailwind
colors: {
  custom: {
    50: '#545a79',
    500: '#0c1f45',
    950: '#000000',
  },
}
SCSS
$custom: #0c1f45;
$custom-light: #545a79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1f45",
  "rgb": {
    "r": 12,
    "g": 31,
    "b": 69
  },
  "hsl": {
    "h": 220,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.2487,
    "c": 0.07586,
    "h": 262.3
  },
  "luminance": 0.01488
}

Semantic roles & 50–950 ramp

primary
#0C1F45
secondary
#81652C
accent
#B23BED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1F45

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

Preview Lab → · Contrast checker → · Palette generator →

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