#0C2045#0C2045

#0C2045 is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.074 H 261.4°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#0C2045
RGBrgb(12, 32, 69)
HSLhsl(219, 70%, 16%)
HSVhsv(219, 83%, 27%)
CMYKcmyk(82.6%, 53.6%, 0%, 72.9%)
CIE-LABlab(12.86, 7.41, -25.64)
CIE-LCHlch(12.86, 26.68, 286.12°)
OKLaboklab(25.13% -0.0111 -0.0736)
OKLCHoklch(25.13% 0.074 261.4)
XYZxyz(1.7419, 1.5407, 5.8346)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2045 #45310C
analogous
#0C3C45 #0C2045 #140C45
triadic
#0C2045 #450C20 #20450C
tetradic
#0C2045 #450C3C #45310C #0C4514
square
#0C2045 #450C3C #45310C #0C4514
split-complementary
#0C2045 #45140C #3C450C
monochromatic
#050C1A #050C1A #0C2045 #153879 #1E50AD

Accessibility & contrast

On white

16.05
#0C2045 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#0C2045 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2045
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2045#FFFFFF#000000##FFFFFF
##0C20451.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2446
Deuteranopia (green-blind)
#011F44
Tritanopia (blue-blind)
#00292F
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0c2045;
/* rgb */ color: rgb(12, 32, 69);
/* oklch */ color: oklch(25.1% 0.074 261.4);
Tailwind
colors: {
  custom: {
    50: '#545a79',
    500: '#0c2045',
    950: '#000000',
  },
}
SCSS
$custom: #0c2045;
$custom-light: #545a79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2045",
  "rgb": {
    "r": 12,
    "g": 32,
    "b": 69
  },
  "hsl": {
    "h": 218.947,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25127,
    "c": 0.07441,
    "h": 261.4
  },
  "luminance": 0.01541
}

Semantic roles & 50–950 ramp

primary
#0C2045
secondary
#81632C
accent
#AF3BED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #0C2045

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

Preview Lab → · Contrast checker → · Palette generator →

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