#0C2142#0C2142

#0C2142 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.1% C 0.068 H 259.2°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#0C2142
RGBrgb(12, 33, 66)
HSLhsl(217, 69%, 15%)
HSVhsv(217, 82%, 26%)
CMYKcmyk(81.8%, 50%, 0%, 74.1%)
CIE-LABlab(12.98, 5.30, -23.36)
CIE-LCHlch(12.98, 23.96, 282.78°)
OKLaboklab(25.14% -0.0128 -0.0669)
OKLCHoklch(25.14% 0.068 259.2)
XYZxyz(1.6785, 1.5590, 5.3657)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2142 #422D0C
analogous
#0C3C42 #0C2142 #120C42
triadic
#0C2142 #420C21 #21420C
tetradic
#0C2142 #420C3C #422D0C #0C4212
square
#0C2142 #420C3C #422D0C #0C4212
split-complementary
#0C2142 #42120C #3C420C
monochromatic
#050D1A #050D1A #0C2142 #153B76 #1F55AA

Accessibility & contrast

On white

16.01
#0C2142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2142
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2142#FFFFFF#000000##FFFFFF
##0C21421.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112443
Deuteranopia (green-blind)
#071F41
Tritanopia (blue-blind)
#00292E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c2142;
/* rgb */ color: rgb(12, 33, 66);
/* oklch */ color: oklch(25.1% 0.068 259.2);
Tailwind
colors: {
  custom: {
    50: '#535b76',
    500: '#0c2142',
    950: '#000000',
  },
}
SCSS
$custom: #0c2142;
$custom-light: #535b76;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2142",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 66
  },
  "hsl": {
    "h": 216.667,
    "s": 69.231,
    "l": 15.294
  },
  "oklch": {
    "l": 0.25142,
    "c": 0.06807,
    "h": 259.2
  },
  "luminance": 0.01559
}

Semantic roles & 50–950 ramp

primary
#0C2142
secondary
#7E5E2C
accent
#A73CEC
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #0C2142

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

Preview Lab → · Contrast checker → · Palette generator →

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