#0C1551#0C1551

#0C1551 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.8% C 0.109 H 269.1°. Best body text is #FFFFFF at 16.91:1 contrast (WCAG AA passes).

Color values

HEX#0C1551
RGBrgb(12, 21, 81)
HSLhsl(232, 74%, 18%)
HSVhsv(232, 85%, 32%)
CMYKcmyk(85.2%, 74.1%, 0%, 68.2%)
CIE-LABlab(10.62, 21.07, -37.58)
CIE-LCHlch(10.62, 43.08, 299.28°)
OKLaboklab(23.8% -0.0017 -0.1088)
OKLCHoklch(23.8% 0.109 269.1)
XYZxyz(1.9045, 1.2084, 7.9158)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1551 #51480C
analogous
#0C3751 #0C1551 #250C51
triadic
#0C1551 #510C15 #15510C
tetradic
#0C1551 #510C37 #51480C #0C5125
square
#0C1551 #510C37 #51480C #0C5125
split-complementary
#0C1551 #51250C #37510C
monochromatic
#04071B #04071C #0C1551 #142386 #1C31BC

Accessibility & contrast

On white

16.91
#0C1551 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#0C1551 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1551
16.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1551#FFFFFF#000000##FFFFFF
##0C15511.0016.911.2416.91
#FFFFFF16.911.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002053
Deuteranopia (green-blind)
#001950
Tritanopia (blue-blind)
#002531
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0c1551;
/* rgb */ color: rgb(12, 21, 81);
/* oklch */ color: oklch(23.8% 0.109 269.1);
Tailwind
colors: {
  custom: {
    50: '#595283',
    500: '#0c1551',
    950: '#000000',
  },
}
SCSS
$custom: #0c1551;
$custom-light: #595283;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1551",
  "rgb": {
    "r": 12,
    "g": 21,
    "b": 81
  },
  "hsl": {
    "h": 232.174,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23795,
    "c": 0.10881,
    "h": 269.1
  },
  "luminance": 0.01209
}

Semantic roles & 50–950 ramp

primary
#0C1551
secondary
#8C802C
accent
#D937F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C1551

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

Preview Lab → · Contrast checker → · Palette generator →

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