#0C2144#0C2144

#0C2144 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.3% C 0.071 H 260.0°. Best body text is #FFFFFF at 15.95:1 contrast (WCAG AA passes).

Color values

HEX#0C2144
RGBrgb(12, 33, 68)
HSLhsl(218, 70%, 16%)
HSVhsv(218, 82%, 27%)
CMYKcmyk(82.4%, 51.5%, 0%, 73.3%)
CIE-LABlab(13.13, 6.20, -24.52)
CIE-LCHlch(13.13, 25.29, 284.18°)
OKLaboklab(25.3% -0.0123 -0.0703)
OKLCHoklch(25.3% 0.071 260)
XYZxyz(1.7385, 1.5830, 5.6817)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2144 #442F0C
analogous
#0C3D44 #0C2144 #130C44
triadic
#0C2144 #440C21 #21440C
tetradic
#0C2144 #440C3D #442F0C #0C4413
square
#0C2144 #440C3D #442F0C #0C4413
split-complementary
#0C2144 #44130C #3D440C
monochromatic
#050D1A #050D1A #0C2144 #153A78 #1E53AC

Accessibility & contrast

On white

15.95
#0C2144 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2144
15.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2144#FFFFFF#000000##FFFFFF
##0C21441.0015.951.3215.95
#FFFFFF15.951.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2545
Deuteranopia (green-blind)
#041F43
Tritanopia (blue-blind)
#00292F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c2144;
/* rgb */ color: rgb(12, 33, 68);
/* oklch */ color: oklch(25.3% 0.071 260.0);
Tailwind
colors: {
  custom: {
    50: '#545b78',
    500: '#0c2144',
    950: '#000000',
  },
}
SCSS
$custom: #0c2144;
$custom-light: #545b78;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2144",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 68
  },
  "hsl": {
    "h": 217.5,
    "s": 70,
    "l": 15.686
  },
  "oklch": {
    "l": 0.25304,
    "c": 0.07135,
    "h": 260
  },
  "luminance": 0.01583
}

Semantic roles & 50–950 ramp

primary
#0C2144
secondary
#80602C
accent
#AA3BED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #0C2144

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

Preview Lab → · Contrast checker → · Palette generator →

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