#0C1C51#0C1C51

#0C1C51 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.3% C 0.099 H 266.3°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#0C1C51
RGBrgb(12, 28, 81)
HSLhsl(226, 74%, 18%)
HSVhsv(226, 85%, 32%)
CMYKcmyk(85.2%, 65.4%, 0%, 68.2%)
CIE-LABlab(12.62, 15.84, -34.29)
CIE-LCHlch(12.62, 37.77, 294.79°)
OKLaboklab(25.27% -0.0064 -0.0991)
OKLCHoklch(25.27% 0.099 266.3)
XYZxyz(2.0516, 1.5025, 7.9649)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1C51 #51410C
analogous
#0C3E51 #0C1C51 #1E0C51
triadic
#0C1C51 #510C1C #1C510C
tetradic
#0C1C51 #510C3E #51410C #0C511E
square
#0C1C51 #510C3E #51410C #0C511E
split-complementary
#0C1C51 #511E0C #3E510C
monochromatic
#04091B #040A1C #0C1C51 #142E86 #1C41BC

Accessibility & contrast

On white

16.15
#0C1C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0C1C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1C51
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1C51#FFFFFF#000000##FFFFFF
##0C1C511.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c1c51;
/* rgb */ color: rgb(12, 28, 81);
/* oklch */ color: oklch(25.3% 0.099 266.3);
Tailwind
colors: {
  custom: {
    50: '#585782',
    500: '#0c1c51',
    950: '#000000',
  },
}
SCSS
$custom: #0c1c51;
$custom-light: #585782;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1c51",
  "rgb": {
    "r": 12,
    "g": 28,
    "b": 81
  },
  "hsl": {
    "h": 226.087,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25272,
    "c": 0.09932,
    "h": 266.3
  },
  "luminance": 0.01503
}

Semantic roles & 50–950 ramp

primary
#0C1C51
secondary
#8C762C
accent
#C637F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1C51

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

Preview Lab → · Contrast checker → · Palette generator →

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