#0C1A51#0C1A51

#0C1A51 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.8% C 0.102 H 267.2°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#0C1A51
RGBrgb(12, 26, 81)
HSLhsl(228, 74%, 18%)
HSVhsv(228, 85%, 32%)
CMYKcmyk(85.2%, 67.9%, 0%, 68.2%)
CIE-LABlab(12.03, 17.35, -35.26)
CIE-LCHlch(12.03, 39.30, 296.20°)
OKLaboklab(24.83% -0.005 -0.102)
OKLCHoklch(24.83% 0.102 267.2)
XYZxyz(2.0057, 1.4108, 7.9496)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1A51 #51430C
analogous
#0C3C51 #0C1A51 #200C51
triadic
#0C1A51 #510C1A #1A510C
tetradic
#0C1A51 #510C3C #51430C #0C5120
square
#0C1A51 #510C3C #51430C #0C5120
split-complementary
#0C1A51 #51200C #3C510C
monochromatic
#04091B #04091C #0C1A51 #142B86 #1C3CBC

Accessibility & contrast

On white

16.38
#0C1A51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#0C1A51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1A51
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1A51#FFFFFF#000000##FFFFFF
##0C1A511.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#001C50
Tritanopia (blue-blind)
#002832
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1a51;
/* rgb */ color: rgb(12, 26, 81);
/* oklch */ color: oklch(24.8% 0.102 267.2);
Tailwind
colors: {
  custom: {
    50: '#585682',
    500: '#0c1a51',
    950: '#000000',
  },
}
SCSS
$custom: #0c1a51;
$custom-light: #585682;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1a51",
  "rgb": {
    "r": 12,
    "g": 26,
    "b": 81
  },
  "hsl": {
    "h": 227.826,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2483,
    "c": 0.10211,
    "h": 267.2
  },
  "luminance": 0.01411
}

Semantic roles & 50–950 ramp

primary
#0C1A51
secondary
#8C792C
accent
#CB37F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1A51

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

Preview Lab → · Contrast checker → · Palette generator →

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