#0C2A55#0C2A55

#0C2A55 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.0% C 0.086 H 258.1°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#0C2A55
RGBrgb(12, 42, 85)
HSLhsl(215, 75%, 19%)
HSVhsv(215, 86%, 33%)
CMYKcmyk(85.9%, 50.6%, 0%, 66.7%)
CIE-LABlab(17.41, 7.00, -29.24)
CIE-LCHlch(17.41, 30.07, 283.46°)
OKLaboklab(29.01% -0.0177 -0.084)
OKLCHoklch(29.01% 0.086 258.1)
XYZxyz(2.6187, 2.3897, 8.9158)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2A55 #55370C
analogous
#0C4F55 #0C2A55 #120C55
triadic
#0C2A55 #550C2A #2A550C
tetradic
#0C2A55 #550C4F #55370C #0C5512
square
#0C2A55 #550C4F #55370C #0C5512
split-complementary
#0C2A55 #55120C #4F550C
monochromatic
#040D1B #04101F #0C2A55 #14458B #1B5FC0

Accessibility & contrast

On white

14.21
#0C2A55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2A55
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2A55#FFFFFF#000000##FFFFFF
##0C2A551.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132E57
Deuteranopia (green-blind)
#022854
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #0c2a55;
/* rgb */ color: rgb(12, 42, 85);
/* oklch */ color: oklch(29.0% 0.086 258.1);
Tailwind
colors: {
  custom: {
    50: '#586385',
    500: '#0c2a55',
    950: '#000000',
  },
}
SCSS
$custom: #0c2a55;
$custom-light: #586385;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2a55",
  "rgb": {
    "r": 12,
    "g": 42,
    "b": 85
  },
  "hsl": {
    "h": 215.342,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.29014,
    "c": 0.08581,
    "h": 258.1
  },
  "luminance": 0.0239
}

Semantic roles & 50–950 ramp

primary
#0C2A55
secondary
#90672D
accent
#A536F2
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #0C2A55

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

Preview Lab → · Contrast checker → · Palette generator →

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