#0C2452#0C2452

#0C2452 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.089 H 261.8°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#0C2452
RGBrgb(12, 36, 82)
HSLhsl(219, 74%, 18%)
HSVhsv(219, 85%, 32%)
CMYKcmyk(85.4%, 56.1%, 0%, 67.8%)
CIE-LABlab(15.22, 10.17, -30.76)
CIE-LCHlch(15.22, 32.40, 288.30°)
OKLaboklab(27.26% -0.0128 -0.0886)
OKLCHoklch(27.26% 0.09 261.8)
XYZxyz(2.3049, 1.9488, 8.2357)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2452 #523A0C
analogous
#0C4752 #0C2452 #170C52
triadic
#0C2452 #520C24 #24520C
tetradic
#0C2452 #520C47 #523A0C #0C5217
square
#0C2452 #520C47 #523A0C #0C5217
split-complementary
#0C2452 #52170C #47520C
monochromatic
#040C1B #040D1D #0C2452 #143B87 #1C53BD

Accessibility & contrast

On white

15.11
#0C2452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#0C2452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2452
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2452#FFFFFF#000000##FFFFFF
##0C24521.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062A54
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#002F37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0c2452;
/* rgb */ color: rgb(12, 36, 82);
/* oklch */ color: oklch(27.3% 0.089 261.8);
Tailwind
colors: {
  custom: {
    50: '#585e83',
    500: '#0c2452',
    950: '#000000',
  },
}
SCSS
$custom: #0c2452;
$custom-light: #585e83;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2452",
  "rgb": {
    "r": 12,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 219.429,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27255,
    "c": 0.0895,
    "h": 261.8
  },
  "luminance": 0.01949
}

Semantic roles & 50–950 ramp

primary
#0C2452
secondary
#8D6C2C
accent
#B137F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #0C2452

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

Preview Lab → · Contrast checker → · Palette generator →

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