#0C2146#0C2146

#0C2146 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.5% C 0.075 H 260.8°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#0C2146
RGBrgb(12, 33, 70)
HSLhsl(218, 71%, 16%)
HSVhsv(218, 83%, 27%)
CMYKcmyk(82.9%, 52.9%, 0%, 72.5%)
CIE-LABlab(13.28, 7.09, -25.66)
CIE-LCHlch(13.28, 26.63, 285.44°)
OKLaboklab(25.47% -0.0119 -0.0736)
OKLCHoklch(25.47% 0.075 260.8)
XYZxyz(1.8006, 1.6079, 6.0086)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2146 #46310C
analogous
#0C3E46 #0C2146 #140C46
triadic
#0C2146 #460C21 #21460C
tetradic
#0C2146 #460C3E #46310C #0C4614
square
#0C2146 #460C3E #46310C #0C4614
split-complementary
#0C2146 #46140C #3E460C
monochromatic
#040C1A #040C1A #0C2146 #153A7A #1E52AE

Accessibility & contrast

On white

15.89
#0C2146 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0C2146 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2146
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2146#FFFFFF#000000##FFFFFF
##0C21461.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D2547
Deuteranopia (green-blind)
#022045
Tritanopia (blue-blind)
#002A30
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c2146;
/* rgb */ color: rgb(12, 33, 70);
/* oklch */ color: oklch(25.5% 0.075 260.8);
Tailwind
colors: {
  custom: {
    50: '#545b7a',
    500: '#0c2146',
    950: '#000000',
  },
}
SCSS
$custom: #0c2146;
$custom-light: #545b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2146",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 70
  },
  "hsl": {
    "h": 218.276,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.25469,
    "c": 0.0746,
    "h": 260.8
  },
  "luminance": 0.01608
}

Semantic roles & 50–950 ramp

primary
#0C2146
secondary
#82632C
accent
#AD3AED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #0C2146

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

Preview Lab → · Contrast checker → · Palette generator →

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