#0C2456#0C2456

#0C2456 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.096 H 262.6°. Best body text is #FFFFFF at 14.97:1 contrast (WCAG AA passes).

Color values

HEX#0C2456
RGBrgb(12, 36, 86)
HSLhsl(221, 76%, 19%)
HSVhsv(221, 86%, 34%)
CMYKcmyk(86%, 58.1%, 0%, 66.3%)
CIE-LABlab(15.55, 11.95, -32.92)
CIE-LCHlch(15.55, 35.03, 289.95°)
OKLaboklab(27.61% -0.0123 -0.0949)
OKLCHoklch(27.61% 0.096 262.6)
XYZxyz(2.4616, 2.0115, 9.0608)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2456 #563E0C
analogous
#0C4956 #0C2456 #190C56
triadic
#0C2456 #560C24 #24560C
tetradic
#0C2456 #560C49 #563E0C #0C5619
square
#0C2456 #560C49 #563E0C #0C5619
split-complementary
#0C2456 #56190C #49560C
monochromatic
#040B1B #050E20 #0C2456 #133A8C #1B51C1

Accessibility & contrast

On white

14.97
#0C2456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#0C2456 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2456
14.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2456#FFFFFF#000000##FFFFFF
##0C24561.0014.971.4014.97
#FFFFFF14.971.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#003039
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0c2456;
/* rgb */ color: rgb(12, 36, 86);
/* oklch */ color: oklch(27.6% 0.096 262.6);
Tailwind
colors: {
  custom: {
    50: '#595e86',
    500: '#0c2456',
    950: '#000000',
  },
}
SCSS
$custom: #0c2456;
$custom-light: #595e86;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2456",
  "rgb": {
    "r": 12,
    "g": 36,
    "b": 86
  },
  "hsl": {
    "h": 220.541,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27612,
    "c": 0.09574,
    "h": 262.6
  },
  "luminance": 0.02012
}

Semantic roles & 50–950 ramp

primary
#0C2456
secondary
#91712D
accent
#B536F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2456

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

Preview Lab → · Contrast checker → · Palette generator →

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