#0C2A54#0C2A54

#0C2A54 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 28.9% C 0.084 H 257.7°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#0C2A54
RGBrgb(12, 42, 84)
HSLhsl(215, 75%, 19%)
HSVhsv(215, 86%, 33%)
CMYKcmyk(85.7%, 50%, 0%, 67.1%)
CIE-LABlab(17.34, 6.55, -28.69)
CIE-LCHlch(17.34, 29.43, 282.86°)
OKLaboklab(28.93% -0.0179 -0.0823)
OKLCHoklch(28.93% 0.084 257.7)
XYZxyz(2.5792, 2.3739, 8.7081)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2A54 #54360C
analogous
#0C4E54 #0C2A54 #120C54
triadic
#0C2A54 #540C2A #2A540C
tetradic
#0C2A54 #540C4E #54360C #0C5412
square
#0C2A54 #540C4E #54360C #0C5412
split-complementary
#0C2A54 #54120C #4E540C
monochromatic
#040D1B #040F1E #0C2A54 #14458A #1B60BF

Accessibility & contrast

On white

14.24
#0C2A54 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#0C2A54 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2A54
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2A54#FFFFFF#000000##FFFFFF
##0C2A541.0014.241.4714.24
#FFFFFF14.241.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#142E56
Deuteranopia (green-blind)
#042853
Tritanopia (blue-blind)
#00343A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0c2a54;
/* rgb */ color: rgb(12, 42, 84);
/* oklch */ color: oklch(28.9% 0.084 257.7);
Tailwind
colors: {
  custom: {
    50: '#586384',
    500: '#0c2a54',
    950: '#000000',
  },
}
SCSS
$custom: #0c2a54;
$custom-light: #586384;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2a54",
  "rgb": {
    "r": 12,
    "g": 42,
    "b": 84
  },
  "hsl": {
    "h": 215,
    "s": 75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28933,
    "c": 0.08427,
    "h": 257.7
  },
  "luminance": 0.02374
}

Semantic roles & 50–950 ramp

primary
#0C2A54
secondary
#8F662D
accent
#A436F2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2A54

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

Preview Lab → · Contrast checker → · Palette generator →

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