#0C1651#0C1651

#0C1651 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.0% C 0.108 H 268.8°. Best body text is #FFFFFF at 16.81:1 contrast (WCAG AA passes).

Color values

HEX#0C1651
RGBrgb(12, 22, 81)
HSLhsl(231, 74%, 18%)
HSVhsv(231, 85%, 32%)
CMYKcmyk(85.2%, 72.8%, 0%, 68.2%)
CIE-LABlab(10.89, 20.34, -37.13)
CIE-LCHlch(10.89, 42.34, 298.71°)
OKLaboklab(23.99% -0.0023 -0.1075)
OKLCHoklch(23.99% 0.108 268.8)
XYZxyz(1.9232, 1.2458, 7.9221)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1651 #51470C
analogous
#0C3851 #0C1651 #240C51
triadic
#0C1651 #510C16 #16510C
tetradic
#0C1651 #510C38 #51470C #0C5124
square
#0C1651 #510C38 #51470C #0C5124
split-complementary
#0C1651 #51240C #38510C
monochromatic
#04071B #04081C #0C1651 #142486 #1C33BC

Accessibility & contrast

On white

16.81
#0C1651 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#0C1651 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1651
16.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1651#FFFFFF#000000##FFFFFF
##0C16511.0016.811.2516.81
#FFFFFF16.811.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#001A50
Tritanopia (blue-blind)
#002631
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0c1651;
/* rgb */ color: rgb(12, 22, 81);
/* oklch */ color: oklch(24.0% 0.108 268.8);
Tailwind
colors: {
  custom: {
    50: '#595383',
    500: '#0c1651',
    950: '#000000',
  },
}
SCSS
$custom: #0c1651;
$custom-light: #595383;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1651",
  "rgb": {
    "r": 12,
    "g": 22,
    "b": 81
  },
  "hsl": {
    "h": 231.304,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23993,
    "c": 0.10751,
    "h": 268.8
  },
  "luminance": 0.01246
}

Semantic roles & 50–950 ramp

primary
#0C1651
secondary
#8C7E2C
accent
#D637F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C1651

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

Preview Lab → · Contrast checker → · Palette generator →

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