#0C1451#0C1451

#0C1451 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.6% C 0.110 H 269.4°. Best body text is #FFFFFF at 17.01:1 contrast (WCAG AA passes).

Color values

HEX#0C1451
RGBrgb(12, 20, 81)
HSLhsl(233, 74%, 18%)
HSVhsv(233, 85%, 32%)
CMYKcmyk(85.2%, 75.3%, 0%, 68.2%)
CIE-LABlab(10.35, 21.79, -38.02)
CIE-LCHlch(10.35, 43.82, 299.82°)
OKLaboklab(23.6% -0.0012 -0.1101)
OKLCHoklch(23.6% 0.11 269.4)
XYZxyz(1.8865, 1.1723, 7.9098)
Luminance0.0117 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1451 #51490C
analogous
#0C3651 #0C1451 #260C51
triadic
#0C1451 #510C14 #14510C
tetradic
#0C1451 #510C36 #51490C #0C5126
square
#0C1451 #510C36 #51490C #0C5126
split-complementary
#0C1451 #51260C #36510C
monochromatic
#04071B #04071C #0C1451 #142186 #1C2EBC

Accessibility & contrast

On white

17.01
#0C1451 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#0C1451 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1451
17.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1451#FFFFFF#000000##FFFFFF
##0C14511.0017.011.2317.01
#FFFFFF17.011.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c1451;
/* rgb */ color: rgb(12, 20, 81);
/* oklch */ color: oklch(23.6% 0.110 269.4);
Tailwind
colors: {
  custom: {
    50: '#595183',
    500: '#0c1451',
    950: '#000000',
  },
}
SCSS
$custom: #0c1451;
$custom-light: #595183;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1451",
  "rgb": {
    "r": 12,
    "g": 20,
    "b": 81
  },
  "hsl": {
    "h": 233.043,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23601,
    "c": 0.11009,
    "h": 269.4
  },
  "luminance": 0.01173
}

Semantic roles & 50–950 ramp

primary
#0C1451
secondary
#8C812C
accent
#DB37F1
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04020B
muted
#79787C

Preview Lab

Preview with #0C1451

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

Preview Lab → · Contrast checker → · Palette generator →

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