#0C2852#0C2852

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

Color values

HEX#0C2852
RGBrgb(12, 40, 82)
HSLhsl(216, 74%, 18%)
HSVhsv(216, 85%, 32%)
CMYKcmyk(85.4%, 51.2%, 0%, 67.8%)
CIE-LABlab(16.53, 7.15, -28.65)
CIE-LCHlch(16.53, 29.53, 284.02°)
OKLaboklab(28.26% -0.0165 -0.0823)
OKLCHoklch(28.26% 0.084 258.7)
XYZxyz(2.4328, 2.2047, 8.2783)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2852 #52360C
analogous
#0C4B52 #0C2852 #130C52
triadic
#0C2852 #520C28 #28520C
tetradic
#0C2852 #520C4B #52360C #0C5213
square
#0C2852 #520C4B #52360C #0C5213
split-complementary
#0C2852 #52130C #4B520C
monochromatic
#040D1B #040E1D #0C2852 #144287 #1C5CBD

Accessibility & contrast

On white

14.57
#0C2852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2852
14.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2852#FFFFFF#000000##FFFFFF
##0C28521.0014.571.4414.57
#FFFFFF14.571.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112C54
Deuteranopia (green-blind)
#012651
Tritanopia (blue-blind)
#003239
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0c2852;
/* rgb */ color: rgb(12, 40, 82);
/* oklch */ color: oklch(28.3% 0.084 258.7);
Tailwind
colors: {
  custom: {
    50: '#586183',
    500: '#0c2852',
    950: '#000000',
  },
}
SCSS
$custom: #0c2852;
$custom-light: #586183;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2852",
  "rgb": {
    "r": 12,
    "g": 40,
    "b": 82
  },
  "hsl": {
    "h": 216,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28259,
    "c": 0.08389,
    "h": 258.7
  },
  "luminance": 0.02205
}

Semantic roles & 50–950 ramp

primary
#0C2852
secondary
#8D672C
accent
#A737F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #0C2852

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

Preview Lab → · Contrast checker → · Palette generator →

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