#0C1B45#0C1B45

#0C1B45 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.9% C 0.082 H 265.6°. Best body text is #FFFFFF at 16.69:1 contrast (WCAG AA passes).

Color values

HEX#0C1B45
RGBrgb(12, 27, 69)
HSLhsl(224, 70%, 16%)
HSVhsv(224, 83%, 27%)
CMYKcmyk(82.6%, 60.9%, 0%, 72.9%)
CIE-LABlab(11.22, 11.30, -28.30)
CIE-LCHlch(11.22, 30.47, 291.76°)
OKLaboklab(23.87% -0.0062 -0.0815)
OKLCHoklch(23.87% 0.082 265.6)
XYZxyz(1.6174, 1.2915, 5.7931)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1B45 #45360C
analogous
#0C3745 #0C1B45 #190C45
triadic
#0C1B45 #450C1B #1B450C
tetradic
#0C1B45 #450C37 #45360C #0C4519
square
#0C1B45 #450C37 #45360C #0C4519
split-complementary
#0C1B45 #45190C #37450C
monochromatic
#050A1A #050A1A #0C1B45 #152F79 #1E44AD

Accessibility & contrast

On white

16.69
#0C1B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#0C1B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1B45
16.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1B45#FFFFFF#000000##FFFFFF
##0C1B451.0016.691.2616.69
#FFFFFF16.691.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002146
Deuteranopia (green-blind)
#001B44
Tritanopia (blue-blind)
#00252C
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0c1b45;
/* rgb */ color: rgb(12, 27, 69);
/* oklch */ color: oklch(23.9% 0.082 265.6);
Tailwind
colors: {
  custom: {
    50: '#555679',
    500: '#0c1b45',
    950: '#000000',
  },
}
SCSS
$custom: #0c1b45;
$custom-light: #555679;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1b45",
  "rgb": {
    "r": 12,
    "g": 27,
    "b": 69
  },
  "hsl": {
    "h": 224.211,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23872,
    "c": 0.08175,
    "h": 265.6
  },
  "luminance": 0.01292
}

Semantic roles & 50–950 ramp

primary
#0C1B45
secondary
#816B2C
accent
#BE3BED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1B45

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

Preview Lab → · Contrast checker → · Palette generator →

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