#0C1E48#0C1E48

#0C1E48 is a very dark, moderate blue. Relative luminance 0.015; OKLCH L 24.9% C 0.082 H 263.9°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#0C1E48
RGBrgb(12, 30, 72)
HSLhsl(222, 71%, 16%)
HSVhsv(222, 83%, 28%)
CMYKcmyk(83.3%, 58.3%, 0%, 71.8%)
CIE-LABlab(12.44, 10.30, -28.40)
CIE-LCHlch(12.44, 30.21, 289.94°)
OKLaboklab(24.88% -0.0087 -0.0817)
OKLCHoklch(24.88% 0.082 263.9)
XYZxyz(1.7852, 1.4744, 6.3201)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1E48 #48360C
analogous
#0C3C48 #0C1E48 #180C48
triadic
#0C1E48 #480C1E #1E480C
tetradic
#0C1E48 #480C3C #48360C #0C4818
square
#0C1E48 #480C3C #48360C #0C4818
split-complementary
#0C1E48 #48180C #3C480C
monochromatic
#040B1A #040B1A #0C1E48 #15347C #1D4AB1

Accessibility & contrast

On white

16.22
#0C1E48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1E48
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1E48#FFFFFF#000000##FFFFFF
##0C1E481.0016.221.3016.22
#FFFFFF16.221.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032349
Deuteranopia (green-blind)
#001E47
Tritanopia (blue-blind)
#00282F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1e48;
/* rgb */ color: rgb(12, 30, 72);
/* oklch */ color: oklch(24.9% 0.082 263.9);
Tailwind
colors: {
  custom: {
    50: '#55597b',
    500: '#0c1e48',
    950: '#000000',
  },
}
SCSS
$custom: #0c1e48;
$custom-light: #55597b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1e48",
  "rgb": {
    "r": 12,
    "g": 30,
    "b": 72
  },
  "hsl": {
    "h": 222,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24884,
    "c": 0.0822,
    "h": 263.9
  },
  "luminance": 0.01475
}

Semantic roles & 50–950 ramp

primary
#0C1E48
secondary
#84692C
accent
#B83AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1E48

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

Preview Lab → · Contrast checker → · Palette generator →

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