#0C2252#0C2252

#0C2252 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.092 H 263.1°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#0C2252
RGBrgb(12, 34, 82)
HSLhsl(221, 74%, 18%)
HSVhsv(221, 85%, 32%)
CMYKcmyk(85.4%, 58.5%, 0%, 67.8%)
CIE-LABlab(14.58, 11.69, -31.80)
CIE-LCHlch(14.58, 33.88, 290.19°)
OKLaboklab(26.77% -0.0111 -0.0917)
OKLCHoklch(26.77% 0.092 263.1)
XYZxyz(2.2461, 1.8312, 8.2161)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2252 #523C0C
analogous
#0C4552 #0C2252 #190C52
triadic
#0C2252 #520C22 #22520C
tetradic
#0C2252 #520C45 #523C0C #0C5219
square
#0C2252 #520C45 #523C0C #0C5219
split-complementary
#0C2252 #52190C #45520C
monochromatic
#040B1B #040C1D #0C2252 #143887 #1C4EBD

Accessibility & contrast

On white

15.37
#0C2252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#0C2252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2252
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2252#FFFFFF#000000##FFFFFF
##0C22521.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002854
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#002E36
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0c2252;
/* rgb */ color: rgb(12, 34, 82);
/* oklch */ color: oklch(26.8% 0.092 263.1);
Tailwind
colors: {
  custom: {
    50: '#585c83',
    500: '#0c2252',
    950: '#000000',
  },
}
SCSS
$custom: #0c2252;
$custom-light: #585c83;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2252",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 82
  },
  "hsl": {
    "h": 221.143,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26768,
    "c": 0.09234,
    "h": 263.1
  },
  "luminance": 0.01831
}

Semantic roles & 50–950 ramp

primary
#0C2252
secondary
#8D6F2C
accent
#B737F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #0C2252

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

Preview Lab → · Contrast checker → · Palette generator →

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