#0C2147#0C2147

#0C2147 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.6% C 0.076 H 261.1°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#0C2147
RGBrgb(12, 33, 71)
HSLhsl(219, 71%, 16%)
HSVhsv(219, 83%, 28%)
CMYKcmyk(83.1%, 53.5%, 0%, 72.2%)
CIE-LABlab(13.36, 7.54, -26.23)
CIE-LCHlch(13.36, 27.30, 286.03°)
OKLaboklab(25.55% -0.0118 -0.0753)
OKLCHoklch(25.55% 0.076 261.1)
XYZxyz(1.8324, 1.6206, 6.1762)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2147 #47320C
analogous
#0C3F47 #0C2147 #150C47
triadic
#0C2147 #470C21 #21470C
tetradic
#0C2147 #470C3F #47320C #0C4715
square
#0C2147 #470C3F #47320C #0C4715
split-complementary
#0C2147 #47150C #3F470C
monochromatic
#040C1A #040C1A #0C2147 #15397B #1E52B0

Accessibility & contrast

On white

15.86
#0C2147 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2147
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2147#FFFFFF#000000##FFFFFF
##0C21471.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2548
Deuteranopia (green-blind)
#002046
Tritanopia (blue-blind)
#002A30
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c2147;
/* rgb */ color: rgb(12, 33, 71);
/* oklch */ color: oklch(25.6% 0.076 261.1);
Tailwind
colors: {
  custom: {
    50: '#555b7a',
    500: '#0c2147',
    950: '#000000',
  },
}
SCSS
$custom: #0c2147;
$custom-light: #555b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2147",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 71
  },
  "hsl": {
    "h": 218.644,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25553,
    "c": 0.07622,
    "h": 261.1
  },
  "luminance": 0.01621
}

Semantic roles & 50–950 ramp

primary
#0C2147
secondary
#83642C
accent
#AE3AEE
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #0C2147

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

Preview Lab → · Contrast checker → · Palette generator →

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