#0C2145#0C2145

#0C2145 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.073 H 260.4°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#0C2145
RGBrgb(12, 33, 69)
HSLhsl(218, 70%, 16%)
HSVhsv(218, 83%, 27%)
CMYKcmyk(82.6%, 52.2%, 0%, 72.9%)
CIE-LABlab(13.20, 6.64, -25.09)
CIE-LCHlch(13.20, 25.96, 284.82°)
OKLaboklab(25.39% -0.0121 -0.072)
OKLCHoklch(25.39% 0.073 260.4)
XYZxyz(1.7693, 1.5954, 5.8438)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2145 #45300C
analogous
#0C3D45 #0C2145 #130C45
triadic
#0C2145 #450C21 #21450C
tetradic
#0C2145 #450C3D #45300C #0C4513
square
#0C2145 #450C3D #45300C #0C4513
split-complementary
#0C2145 #45130C #3D450C
monochromatic
#050C1A #050C1A #0C2145 #153A79 #1E53AD

Accessibility & contrast

On white

15.92
#0C2145 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2145
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2145#FFFFFF#000000##FFFFFF
##0C21451.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E2546
Deuteranopia (green-blind)
#032044
Tritanopia (blue-blind)
#00292F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0c2145;
/* rgb */ color: rgb(12, 33, 69);
/* oklch */ color: oklch(25.4% 0.073 260.4);
Tailwind
colors: {
  custom: {
    50: '#545b79',
    500: '#0c2145',
    950: '#000000',
  },
}
SCSS
$custom: #0c2145;
$custom-light: #545b79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2145",
  "rgb": {
    "r": 12,
    "g": 33,
    "b": 69
  },
  "hsl": {
    "h": 217.895,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25386,
    "c": 0.07298,
    "h": 260.4
  },
  "luminance": 0.01596
}

Semantic roles & 50–950 ramp

primary
#0C2145
secondary
#81622C
accent
#AB3BED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #0C2145

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

Preview Lab → · Contrast checker → · Palette generator →

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