#0C2048#0C2048

#0C2048 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.079 H 262.3°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#0C2048
RGBrgb(12, 32, 72)
HSLhsl(220, 71%, 16%)
HSVhsv(220, 83%, 28%)
CMYKcmyk(83.3%, 55.6%, 0%, 71.8%)
CIE-LABlab(13.10, 8.76, -27.33)
CIE-LCHlch(13.10, 28.70, 287.76°)
OKLaboklab(25.38% -0.0106 -0.0786)
OKLCHoklch(25.38% 0.079 262.3)
XYZxyz(1.8374, 1.5789, 6.3375)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2048 #48340C
analogous
#0C3E48 #0C2048 #160C48
triadic
#0C2048 #480C20 #20480C
tetradic
#0C2048 #480C3E #48340C #0C4816
square
#0C2048 #480C3E #48340C #0C4816
split-complementary
#0C2048 #48160C #3E480C
monochromatic
#040C1A #040C1A #0C2048 #15377C #1D4FB1

Accessibility & contrast

On white

15.96
#0C2048 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0C2048 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2048
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2048#FFFFFF#000000##FFFFFF
##0C20481.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082549
Deuteranopia (green-blind)
#001F47
Tritanopia (blue-blind)
#002A30
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c2048;
/* rgb */ color: rgb(12, 32, 72);
/* oklch */ color: oklch(25.4% 0.079 262.3);
Tailwind
colors: {
  custom: {
    50: '#555a7b',
    500: '#0c2048',
    950: '#000000',
  },
}
SCSS
$custom: #0c2048;
$custom-light: #555a7b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2048",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 72
  },
  "hsl": {
    "h": 220,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25384,
    "c": 0.07928,
    "h": 262.3
  },
  "luminance": 0.01579
}

Semantic roles & 50–950 ramp

primary
#0C2048
secondary
#84672C
accent
#B23AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C2048

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

Preview Lab → · Contrast checker → · Palette generator →

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