#0C2245#0C2245

#0C2245 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 25.6% C 0.072 H 259.4°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#0C2245
RGBrgb(12, 34, 69)
HSLhsl(217, 70%, 16%)
HSVhsv(217, 83%, 27%)
CMYKcmyk(82.6%, 50.7%, 0%, 72.9%)
CIE-LABlab(13.54, 5.88, -24.55)
CIE-LCHlch(13.54, 25.24, 283.46°)
OKLaboklab(25.65% -0.0132 -0.0703)
OKLCHoklch(25.65% 0.072 259.4)
XYZxyz(1.7974, 1.6517, 5.8531)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2245 #452F0C
analogous
#0C3E45 #0C2245 #120C45
triadic
#0C2245 #450C22 #22450C
tetradic
#0C2245 #450C3E #452F0C #0C4512
square
#0C2245 #450C3E #452F0C #0C4512
split-complementary
#0C2245 #45120C #3E450C
monochromatic
#050D1A #050D1A #0C2245 #153C79 #1E55AD

Accessibility & contrast

On white

15.78
#0C2245 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#0C2245 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2245
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2245#FFFFFF#000000##FFFFFF
##0C22451.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102546
Deuteranopia (green-blind)
#052044
Tritanopia (blue-blind)
#002A30
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0c2245;
/* rgb */ color: rgb(12, 34, 69);
/* oklch */ color: oklch(25.6% 0.072 259.4);
Tailwind
colors: {
  custom: {
    50: '#545c79',
    500: '#0c2245',
    950: '#000000',
  },
}
SCSS
$custom: #0c2245;
$custom-light: #545c79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2245",
  "rgb": {
    "r": 12,
    "g": 34,
    "b": 69
  },
  "hsl": {
    "h": 216.842,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25648,
    "c": 0.07156,
    "h": 259.4
  },
  "luminance": 0.01652
}

Semantic roles & 50–950 ramp

primary
#0C2245
secondary
#81602C
accent
#A83BED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #0C2245

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

Preview Lab → · Contrast checker → · Palette generator →

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