#0C1A4D#0C1A4D

#0C1A4D is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.4% C 0.096 H 267.0°. Best body text is #FFFFFF at 16.53:1 contrast (WCAG AA passes).

Color values

HEX#0C1A4D
RGBrgb(12, 26, 77)
HSLhsl(227, 73%, 17%)
HSVhsv(227, 84%, 30%)
CMYKcmyk(84.4%, 66.2%, 0%, 69.8%)
CIE-LABlab(11.64, 15.61, -33.16)
CIE-LCHlch(11.64, 36.65, 295.21°)
OKLaboklab(24.42% -0.005 -0.0958)
OKLCHoklch(24.42% 0.096 267)
XYZxyz(1.8601, 1.3526, 7.1828)
Luminance0.0135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1A4D #4D3F0C
analogous
#0C3B4D #0C1A4D #1F0C4D
triadic
#0C1A4D #4D0C1A #1A4D0C
tetradic
#0C1A4D #4D0C3B #4D3F0C #0C4D1F
square
#0C1A4D #4D0C3B #4D3F0C #0C4D1F
split-complementary
#0C1A4D #4D1F0C #3B4D0C
monochromatic
#04091A #04091A #0C1A4D #142C82 #1D3EB7

Accessibility & contrast

On white

16.53
#0C1A4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1A4D
16.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1A4D#FFFFFF#000000##FFFFFF
##0C1A4D1.0016.531.2716.53
#FFFFFF16.531.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224F
Deuteranopia (green-blind)
#001C4C
Tritanopia (blue-blind)
#002730
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #0c1a4d;
/* rgb */ color: rgb(12, 26, 77);
/* oklch */ color: oklch(24.4% 0.096 267.0);
Tailwind
colors: {
  custom: {
    50: '#57567f',
    500: '#0c1a4d',
    950: '#000000',
  },
}
SCSS
$custom: #0c1a4d;
$custom-light: #57567f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1a4d",
  "rgb": {
    "r": 12,
    "g": 26,
    "b": 77
  },
  "hsl": {
    "h": 227.077,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24419,
    "c": 0.09594,
    "h": 267
  },
  "luminance": 0.01353
}

Semantic roles & 50–950 ramp

primary
#0C1A4D
secondary
#89752C
accent
#C838F0
background
#F5F5F7
surface
#E9E8EE
border
#C5C4C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1A4D

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

Preview Lab → · Contrast checker → · Palette generator →

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