#0C2552#0C2552

#0C2552 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.5% C 0.088 H 261.0°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#0C2552
RGBrgb(12, 37, 82)
HSLhsl(219, 74%, 18%)
HSVhsv(219, 85%, 32%)
CMYKcmyk(85.4%, 54.9%, 0%, 67.8%)
CIE-LABlab(15.54, 9.41, -30.24)
CIE-LCHlch(15.54, 31.67, 287.29°)
OKLaboklab(27.5% -0.0137 -0.087)
OKLCHoklch(27.5% 0.088 261)
XYZxyz(2.3356, 2.0102, 8.2459)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2552 #52390C
analogous
#0C4852 #0C2552 #160C52
triadic
#0C2552 #520C25 #25520C
tetradic
#0C2552 #520C48 #52390C #0C5216
square
#0C2552 #520C48 #52390C #0C5216
split-complementary
#0C2552 #52160C #48520C
monochromatic
#040C1B #040D1D #0C2552 #143D87 #1C55BD

Accessibility & contrast

On white

14.98
#0C2552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2552
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2552#FFFFFF#000000##FFFFFF
##0C25521.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092A54
Deuteranopia (green-blind)
#002451
Tritanopia (blue-blind)
#003037
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0c2552;
/* rgb */ color: rgb(12, 37, 82);
/* oklch */ color: oklch(27.5% 0.088 261.0);
Tailwind
colors: {
  custom: {
    50: '#585e83',
    500: '#0c2552',
    950: '#000000',
  },
}
SCSS
$custom: #0c2552;
$custom-light: #585e83;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2552",
  "rgb": {
    "r": 12,
    "g": 37,
    "b": 82
  },
  "hsl": {
    "h": 218.571,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27503,
    "c": 0.08808,
    "h": 261
  },
  "luminance": 0.0201
}

Semantic roles & 50–950 ramp

primary
#0C2552
secondary
#8D6B2C
accent
#AF37F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #0C2552

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

Preview Lab → · Contrast checker → · Palette generator →

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