#0C2556#0C2556

#0C2556 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.9% C 0.094 H 262.0°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#0C2556
RGBrgb(12, 37, 86)
HSLhsl(220, 76%, 19%)
HSVhsv(220, 86%, 34%)
CMYKcmyk(86%, 57%, 0%, 66.3%)
CIE-LABlab(15.87, 11.19, -32.41)
CIE-LCHlch(15.87, 34.29, 289.06°)
OKLaboklab(27.85% -0.0132 -0.0934)
OKLCHoklch(27.85% 0.094 262)
XYZxyz(2.4923, 2.0729, 9.0710)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2556 #563D0C
analogous
#0C4A56 #0C2556 #180C56
triadic
#0C2556 #560C25 #25560C
tetradic
#0C2556 #560C4A #563D0C #0C5618
square
#0C2556 #560C4A #563D0C #0C5618
split-complementary
#0C2556 #56180C #4A560C
monochromatic
#040C1B #050E20 #0C2556 #133C8C #1B53C1

Accessibility & contrast

On white

14.85
#0C2556 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#0C2556 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2556
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2556#FFFFFF#000000##FFFFFF
##0C25561.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032B58
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#003139
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0c2556;
/* rgb */ color: rgb(12, 37, 86);
/* oklch */ color: oklch(27.9% 0.094 262.0);
Tailwind
colors: {
  custom: {
    50: '#595e86',
    500: '#0c2556',
    950: '#000000',
  },
}
SCSS
$custom: #0c2556;
$custom-light: #595e86;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2556",
  "rgb": {
    "r": 12,
    "g": 37,
    "b": 86
  },
  "hsl": {
    "h": 219.73,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.27854,
    "c": 0.09432,
    "h": 262
  },
  "luminance": 0.02073
}

Semantic roles & 50–950 ramp

primary
#0C2556
secondary
#916F2D
accent
#B236F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2556

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

Preview Lab → · Contrast checker → · Palette generator →

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