#0C1851#0C1851

#0C1851 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.4% C 0.105 H 268.0°. Best body text is #FFFFFF at 16.60:1 contrast (WCAG AA passes).

Color values

HEX#0C1851
RGBrgb(12, 24, 81)
HSLhsl(230, 74%, 18%)
HSVhsv(230, 85%, 32%)
CMYKcmyk(85.2%, 70.4%, 0%, 68.2%)
CIE-LABlab(11.45, 18.86, -36.21)
CIE-LCHlch(11.45, 40.83, 297.51°)
OKLaboklab(24.4% -0.0036 -0.1048)
OKLCHoklch(24.4% 0.105 268)
XYZxyz(1.9629, 1.3253, 7.9353)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1851 #51450C
analogous
#0C3A51 #0C1851 #220C51
triadic
#0C1851 #510C18 #18510C
tetradic
#0C1851 #510C3A #51450C #0C5122
square
#0C1851 #510C3A #51450C #0C5122
split-complementary
#0C1851 #51220C #3A510C
monochromatic
#04081B #04081C #0C1851 #142886 #1C38BC

Accessibility & contrast

On white

16.60
#0C1851 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#0C1851 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1851
16.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1851#FFFFFF#000000##FFFFFF
##0C18511.0016.601.2716.60
#FFFFFF16.601.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#001B50
Tritanopia (blue-blind)
#002732
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0c1851;
/* rgb */ color: rgb(12, 24, 81);
/* oklch */ color: oklch(24.4% 0.105 268.0);
Tailwind
colors: {
  custom: {
    50: '#595482',
    500: '#0c1851',
    950: '#000000',
  },
}
SCSS
$custom: #0c1851;
$custom-light: #595482;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1851",
  "rgb": {
    "r": 12,
    "g": 24,
    "b": 81
  },
  "hsl": {
    "h": 229.565,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24404,
    "c": 0.10484,
    "h": 268
  },
  "luminance": 0.01326
}

Semantic roles & 50–950 ramp

primary
#0C1851
secondary
#8C7C2C
accent
#D137F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020A
muted
#79787C

Preview Lab

Preview with #0C1851

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

Preview Lab → · Contrast checker → · Palette generator →

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