#0C2351#0C2351

#0C2351 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 26.9% C 0.089 H 262.2°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#0C2351
RGBrgb(12, 35, 81)
HSLhsl(220, 74%, 18%)
HSVhsv(220, 85%, 32%)
CMYKcmyk(85.2%, 56.8%, 0%, 68.2%)
CIE-LABlab(14.81, 10.49, -30.74)
CIE-LCHlch(14.81, 32.48, 288.84°)
OKLaboklab(26.92% -0.0121 -0.0885)
OKLCHoklch(26.92% 0.089 262.2)
XYZxyz(2.2373, 1.8740, 8.0268)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2351 #513A0C
analogous
#0C4551 #0C2351 #170C51
triadic
#0C2351 #510C23 #23510C
tetradic
#0C2351 #510C45 #513A0C #0C5117
square
#0C2351 #510C45 #513A0C #0C5117
split-complementary
#0C2351 #51170C #45510C
monochromatic
#040C1B #040C1C #0C2351 #143A86 #1C51BC

Accessibility & contrast

On white

15.27
#0C2351 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#0C2351 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2351
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2351#FFFFFF#000000##FFFFFF
##0C23511.0015.271.3715.27
#FFFFFF15.271.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052953
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#002E36
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0c2351;
/* rgb */ color: rgb(12, 35, 81);
/* oklch */ color: oklch(26.9% 0.089 262.2);
Tailwind
colors: {
  custom: {
    50: '#585d82',
    500: '#0c2351',
    950: '#000000',
  },
}
SCSS
$custom: #0c2351;
$custom-light: #585d82;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2351",
  "rgb": {
    "r": 12,
    "g": 35,
    "b": 81
  },
  "hsl": {
    "h": 220,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26921,
    "c": 0.08934,
    "h": 262.2
  },
  "luminance": 0.01874
}

Semantic roles & 50–950 ramp

primary
#0C2351
secondary
#8C6C2C
accent
#B337F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #0C2351

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

Preview Lab → · Contrast checker → · Palette generator →

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