#0C2952#0C2952

#0C2952 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.5% C 0.083 H 257.8°. Best body text is #FFFFFF at 14.44:1 contrast (WCAG AA passes).

Color values

HEX#0C2952
RGBrgb(12, 41, 82)
HSLhsl(215, 74%, 18%)
HSVhsv(215, 85%, 32%)
CMYKcmyk(85.4%, 50%, 0%, 67.8%)
CIE-LABlab(16.86, 6.41, -28.11)
CIE-LCHlch(16.86, 28.83, 282.84°)
OKLaboklab(28.52% -0.0174 -0.0807)
OKLCHoklch(28.52% 0.083 257.8)
XYZxyz(2.4670, 2.2729, 8.2897)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2952 #52350C
analogous
#0C4C52 #0C2952 #120C52
triadic
#0C2952 #520C29 #29520C
tetradic
#0C2952 #520C4C #52350C #0C5212
square
#0C2952 #520C4C #52350C #0C5212
split-complementary
#0C2952 #52120C #4C520C
monochromatic
#040D1B #040E1D #0C2952 #144487 #1C5EBD

Accessibility & contrast

On white

14.44
#0C2952 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#0C2952 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2952
14.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2952#FFFFFF#000000##FFFFFF
##0C29521.0014.441.4514.44
#FFFFFF14.441.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132D54
Deuteranopia (green-blind)
#042751
Tritanopia (blue-blind)
#003339
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #0c2952;
/* rgb */ color: rgb(12, 41, 82);
/* oklch */ color: oklch(28.5% 0.083 257.8);
Tailwind
colors: {
  custom: {
    50: '#586283',
    500: '#0c2952',
    950: '#000000',
  },
}
SCSS
$custom: #0c2952;
$custom-light: #586283;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2952",
  "rgb": {
    "r": 12,
    "g": 41,
    "b": 82
  },
  "hsl": {
    "h": 215.143,
    "s": 74.468,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28516,
    "c": 0.08252,
    "h": 257.8
  },
  "luminance": 0.02273
}

Semantic roles & 50–950 ramp

primary
#0C2952
secondary
#8D652C
accent
#A437F1
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #0C2952

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

Preview Lab → · Contrast checker → · Palette generator →

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