#0C2851#0C2851

#0C2851 is a dark, moderate blue. Relative luminance 0.022; OKLCH L 28.2% C 0.082 H 258.3°. Best body text is #FFFFFF at 14.60:1 contrast (WCAG AA passes).

Color values

HEX#0C2851
RGBrgb(12, 40, 81)
HSLhsl(216, 74%, 18%)
HSVhsv(216, 85%, 32%)
CMYKcmyk(85.2%, 50.6%, 0%, 68.2%)
CIE-LABlab(16.45, 6.71, -28.09)
CIE-LCHlch(16.45, 28.88, 283.43°)
OKLaboklab(28.18% -0.0167 -0.0806)
OKLCHoklch(28.18% 0.082 258.3)
XYZxyz(2.3951, 2.1895, 8.0794)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2851 #51350C
analogous
#0C4A51 #0C2851 #120C51
triadic
#0C2851 #510C28 #28510C
tetradic
#0C2851 #510C4A #51350C #0C5112
square
#0C2851 #510C4A #51350C #0C5112
split-complementary
#0C2851 #51120C #4A510C
monochromatic
#040D1B #040E1C #0C2851 #144286 #1C5DBC

Accessibility & contrast

On white

14.60
#0C2851 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2851
14.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2851#FFFFFF#000000##FFFFFF
##0C28511.0014.601.4414.60
#FFFFFF14.601.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122C53
Deuteranopia (green-blind)
#032650
Tritanopia (blue-blind)
#003238
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #0c2851;
/* rgb */ color: rgb(12, 40, 81);
/* oklch */ color: oklch(28.2% 0.082 258.3);
Tailwind
colors: {
  custom: {
    50: '#576182',
    500: '#0c2851',
    950: '#000000',
  },
}
SCSS
$custom: #0c2851;
$custom-light: #576182;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2851",
  "rgb": {
    "r": 12,
    "g": 40,
    "b": 81
  },
  "hsl": {
    "h": 215.652,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.28178,
    "c": 0.08233,
    "h": 258.3
  },
  "luminance": 0.0219
}

Semantic roles & 50–950 ramp

primary
#0C2851
secondary
#8C652C
accent
#A537F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #0C2851

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

Preview Lab → · Contrast checker → · Palette generator →

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