#0C1E4D#0C1E4D

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

Color values

HEX#0C1E4D
RGBrgb(12, 30, 77)
HSLhsl(223, 73%, 17%)
HSVhsv(223, 84%, 30%)
CMYKcmyk(84.4%, 61%, 0%, 69.8%)
CIE-LABlab(12.87, 12.54, -31.15)
CIE-LCHlch(12.87, 33.57, 291.92°)
OKLaboklab(25.35% -0.0082 -0.0898)
OKLCHoklch(25.35% 0.09 264.8)
XYZxyz(1.9550, 1.5423, 7.2144)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1E4D #4D3B0C
analogous
#0C3E4D #0C1E4D #1B0C4D
triadic
#0C1E4D #4D0C1E #1E4D0C
tetradic
#0C1E4D #4D0C3E #4D3B0C #0C4D1B
square
#0C1E4D #4D0C3E #4D3B0C #0C4D1B
split-complementary
#0C1E4D #4D1B0C #3E4D0C
monochromatic
#040A1A #040A1A #0C1E4D #143382 #1D47B7

Accessibility & contrast

On white

16.05
#0C1E4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1E4D
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1E4D#FFFFFF#000000##FFFFFF
##0C1E4D1.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244F
Deuteranopia (green-blind)
#001E4C
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c1e4d;
/* rgb */ color: rgb(12, 30, 77);
/* oklch */ color: oklch(25.3% 0.090 264.8);
Tailwind
colors: {
  custom: {
    50: '#57597f',
    500: '#0c1e4d',
    950: '#000000',
  },
}
SCSS
$custom: #0c1e4d;
$custom-light: #57597f;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1e4d",
  "rgb": {
    "r": 12,
    "g": 30,
    "b": 77
  },
  "hsl": {
    "h": 223.385,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25345,
    "c": 0.0902,
    "h": 264.8
  },
  "luminance": 0.01543
}

Semantic roles & 50–950 ramp

primary
#0C1E4D
secondary
#896F2C
accent
#BD38F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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