#0C1D51#0C1D51

#0C1D51 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.5% C 0.098 H 265.8°. Best body text is #FFFFFF at 16.03:1 contrast (WCAG AA passes).

Color values

HEX#0C1D51
RGBrgb(12, 29, 81)
HSLhsl(225, 74%, 18%)
HSVhsv(225, 85%, 32%)
CMYKcmyk(85.2%, 64.2%, 0%, 68.2%)
CIE-LABlab(12.93, 15.07, -33.80)
CIE-LCHlch(12.93, 37.01, 294.04°)
OKLaboklab(25.5% -0.0072 -0.0976)
OKLCHoklch(25.5% 0.098 265.8)
XYZxyz(2.0757, 1.5507, 7.9729)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1D51 #51400C
analogous
#0C3F51 #0C1D51 #1D0C51
triadic
#0C1D51 #510C1D #1D510C
tetradic
#0C1D51 #510C3F #51400C #0C511D
square
#0C1D51 #510C3F #51400C #0C511D
split-complementary
#0C1D51 #511D0C #3F510C
monochromatic
#040A1B #040A1C #0C1D51 #143086 #1C43BC

Accessibility & contrast

On white

16.03
#0C1D51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#0C1D51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1D51
16.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1D51#FFFFFF#000000##FFFFFF
##0C1D511.0016.031.3116.03
#FFFFFF16.031.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002553
Deuteranopia (green-blind)
#001E50
Tritanopia (blue-blind)
#002A33
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c1d51;
/* rgb */ color: rgb(12, 29, 81);
/* oklch */ color: oklch(25.5% 0.098 265.8);
Tailwind
colors: {
  custom: {
    50: '#585882',
    500: '#0c1d51',
    950: '#000000',
  },
}
SCSS
$custom: #0c1d51;
$custom-light: #585882;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1d51",
  "rgb": {
    "r": 12,
    "g": 29,
    "b": 81
  },
  "hsl": {
    "h": 225.217,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25498,
    "c": 0.0979,
    "h": 265.8
  },
  "luminance": 0.01551
}

Semantic roles & 50–950 ramp

primary
#0C1D51
secondary
#8C752C
accent
#C337F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1D51

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

Preview Lab → · Contrast checker → · Palette generator →

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