#0C2345#0C2345

#0C2345 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 25.9% C 0.070 H 258.3°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#0C2345
RGBrgb(12, 35, 69)
HSLhsl(216, 70%, 16%)
HSVhsv(216, 83%, 27%)
CMYKcmyk(82.6%, 49.3%, 0%, 72.9%)
CIE-LABlab(13.88, 5.12, -24.00)
CIE-LCHlch(13.88, 24.54, 282.03°)
OKLaboklab(25.91% -0.0142 -0.0687)
OKLCHoklch(25.91% 0.07 258.3)
XYZxyz(1.8264, 1.7097, 5.8628)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2345 #452E0C
analogous
#0C3F45 #0C2345 #110C45
triadic
#0C2345 #450C23 #23450C
tetradic
#0C2345 #450C3F #452E0C #0C4511
square
#0C2345 #450C3F #452E0C #0C4511
split-complementary
#0C2345 #45110C #3F450C
monochromatic
#050D1A #050D1A #0C2345 #153D79 #1E58AD

Accessibility & contrast

On white

15.65
#0C2345 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2345
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2345#FFFFFF#000000##FFFFFF
##0C23451.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122646
Deuteranopia (green-blind)
#072144
Tritanopia (blue-blind)
#002B30
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0c2345;
/* rgb */ color: rgb(12, 35, 69);
/* oklch */ color: oklch(25.9% 0.070 258.3);
Tailwind
colors: {
  custom: {
    50: '#545d79',
    500: '#0c2345',
    950: '#000000',
  },
}
SCSS
$custom: #0c2345;
$custom-light: #545d79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2345",
  "rgb": {
    "r": 12,
    "g": 35,
    "b": 69
  },
  "hsl": {
    "h": 215.789,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.25912,
    "c": 0.07016,
    "h": 258.3
  },
  "luminance": 0.0171
}

Semantic roles & 50–950 ramp

primary
#0C2345
secondary
#815F2C
accent
#A53BED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030409
muted
#78797B

Preview Lab

Preview with #0C2345

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

Preview Lab → · Contrast checker → · Palette generator →

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