#0C2A56#0C2A56

#0C2A56 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.1% C 0.087 H 258.4°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#0C2A56
RGBrgb(12, 42, 86)
HSLhsl(216, 76%, 19%)
HSVhsv(216, 86%, 34%)
CMYKcmyk(86%, 51.2%, 0%, 66.3%)
CIE-LABlab(17.49, 7.44, -29.79)
CIE-LCHlch(17.49, 30.71, 284.02°)
OKLaboklab(29.1% -0.0175 -0.0856)
OKLCHoklch(29.1% 0.087 258.4)
XYZxyz(2.6587, 2.4057, 9.1265)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2A56 #56380C
analogous
#0C4F56 #0C2A56 #130C56
triadic
#0C2A56 #560C2A #2A560C
tetradic
#0C2A56 #560C4F #56380C #0C5613
square
#0C2A56 #560C4F #56380C #0C5613
split-complementary
#0C2A56 #56130C #4F560C
monochromatic
#040D1B #051020 #0C2A56 #13448C #1B5EC1

Accessibility & contrast

On white

14.18
#0C2A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#0C2A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2A56
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2A56#FFFFFF#000000##FFFFFF
##0C2A561.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122E58
Deuteranopia (green-blind)
#002855
Tritanopia (blue-blind)
#00353B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0c2a56;
/* rgb */ color: rgb(12, 42, 86);
/* oklch */ color: oklch(29.1% 0.087 258.4);
Tailwind
colors: {
  custom: {
    50: '#596386',
    500: '#0c2a56',
    950: '#000000',
  },
}
SCSS
$custom: #0c2a56;
$custom-light: #596386;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2a56",
  "rgb": {
    "r": 12,
    "g": 42,
    "b": 86
  },
  "hsl": {
    "h": 215.676,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29095,
    "c": 0.08736,
    "h": 258.4
  },
  "luminance": 0.02406
}

Semantic roles & 50–950 ramp

primary
#0C2A56
secondary
#91682D
accent
#A636F2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2A56

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

Preview Lab → · Contrast checker → · Palette generator →

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