#0C2756#0C2756

#0C2756 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.3% C 0.092 H 260.6°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#0C2756
RGBrgb(12, 39, 86)
HSLhsl(218, 76%, 19%)
HSVhsv(218, 86%, 34%)
CMYKcmyk(86%, 54.7%, 0%, 66.3%)
CIE-LABlab(16.51, 9.68, -31.37)
CIE-LCHlch(16.51, 32.83, 287.16°)
OKLaboklab(28.34% -0.0149 -0.0903)
OKLCHoklch(28.34% 0.092 260.6)
XYZxyz(2.5562, 2.2008, 9.0924)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2756 #563B0C
analogous
#0C4C56 #0C2756 #160C56
triadic
#0C2756 #560C27 #27560C
tetradic
#0C2756 #560C4C #563B0C #0C5616
square
#0C2756 #560C4C #563B0C #0C5616
split-complementary
#0C2756 #56160C #4C560C
monochromatic
#040C1B #050F20 #0C2756 #133F8C #1B58C1

Accessibility & contrast

On white

14.58
#0C2756 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#0C2756 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2756
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2756#FFFFFF#000000##FFFFFF
##0C27561.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092C58
Deuteranopia (green-blind)
#002655
Tritanopia (blue-blind)
#00323A
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0c2756;
/* rgb */ color: rgb(12, 39, 86);
/* oklch */ color: oklch(28.3% 0.092 260.6);
Tailwind
colors: {
  custom: {
    50: '#596086',
    500: '#0c2756',
    950: '#000000',
  },
}
SCSS
$custom: #0c2756;
$custom-light: #596086;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2756",
  "rgb": {
    "r": 12,
    "g": 39,
    "b": 86
  },
  "hsl": {
    "h": 218.108,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28343,
    "c": 0.09152,
    "h": 260.6
  },
  "luminance": 0.02201
}

Semantic roles & 50–950 ramp

primary
#0C2756
secondary
#916C2D
accent
#AD36F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2756

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

Preview Lab → · Contrast checker → · Palette generator →

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