#0C2247#0C2247

#0C2247 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 25.8% C 0.075 H 260.2°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#0C2247
RGBrgb(12, 34, 71)
HSLhsl(218, 71%, 16%)
HSVhsv(218, 83%, 28%)
CMYKcmyk(83.1%, 52.1%, 0%, 72.2%)
CIE-LABlab(13.69, 6.77, -25.69)
CIE-LCHlch(13.69, 26.57, 284.77°)
OKLaboklab(25.81% -0.0128 -0.0737)
OKLCHoklch(25.81% 0.075 260.2)
XYZxyz(1.8606, 1.6769, 6.1856)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2247 #47310C
analogous
#0C4047 #0C2247 #140C47
triadic
#0C2247 #470C22 #22470C
tetradic
#0C2247 #470C40 #47310C #0C4714
square
#0C2247 #470C40 #47310C #0C4714
split-complementary
#0C2247 #47140C #40470C
monochromatic
#040D1A #040D1A #0C2247 #153B7B #1E54B0

Accessibility & contrast

On white

15.73
#0C2247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#0C2247 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2247
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2247#FFFFFF#000000##FFFFFF
##0C22471.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2648
Deuteranopia (green-blind)
#022046
Tritanopia (blue-blind)
#002B31
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0c2247;
/* rgb */ color: rgb(12, 34, 71);
/* oklch */ color: oklch(25.8% 0.075 260.2);
Tailwind
colors: {
  custom: {
    50: '#555c7a',
    500: '#0c2247',
    950: '#000000',
  },
}
SCSS
$custom: #0c2247;
$custom-light: #555c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2247",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 71
  },
  "hsl": {
    "h": 217.627,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.25811,
    "c": 0.0748,
    "h": 260.2
  },
  "luminance": 0.01677
}

Semantic roles & 50–950 ramp

primary
#0C2247
secondary
#83622C
accent
#AB3AEE
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #0C2247

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

Preview Lab → · Contrast checker → · Palette generator →

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