#0C2451#0C2451

#0C2451 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.2% C 0.088 H 261.5°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#0C2451
RGBrgb(12, 36, 81)
HSLhsl(219, 74%, 18%)
HSVhsv(219, 85%, 32%)
CMYKcmyk(85.2%, 55.6%, 0%, 68.2%)
CIE-LABlab(15.14, 9.73, -30.21)
CIE-LCHlch(15.14, 31.74, 287.84°)
OKLaboklab(27.17% -0.013 -0.087)
OKLCHoklch(27.17% 0.088 261.5)
XYZxyz(2.2672, 1.9337, 8.0367)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2451 #51390C
analogous
#0C4651 #0C2451 #160C51
triadic
#0C2451 #510C24 #24510C
tetradic
#0C2451 #510C46 #51390C #0C5116
square
#0C2451 #510C46 #51390C #0C5116
split-complementary
#0C2451 #51160C #46510C
monochromatic
#040C1B #040C1C #0C2451 #143C86 #1C53BC

Accessibility & contrast

On white

15.14
#0C2451 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#0C2451 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2451
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2451#FFFFFF#000000##FFFFFF
##0C24511.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072953
Deuteranopia (green-blind)
#002350
Tritanopia (blue-blind)
#002F36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0c2451;
/* rgb */ color: rgb(12, 36, 81);
/* oklch */ color: oklch(27.2% 0.088 261.5);
Tailwind
colors: {
  custom: {
    50: '#575e82',
    500: '#0c2451',
    950: '#000000',
  },
}
SCSS
$custom: #0c2451;
$custom-light: #575e82;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2451",
  "rgb": {
    "r": 12,
    "g": 36,
    "b": 81
  },
  "hsl": {
    "h": 219.13,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.27168,
    "c": 0.08792,
    "h": 261.5
  },
  "luminance": 0.01934
}

Semantic roles & 50–950 ramp

primary
#0C2451
secondary
#8C6B2C
accent
#B037F1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #0C2451

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

Preview Lab → · Contrast checker → · Palette generator →

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