#0C2457#0C2457

#0C2457 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.7% C 0.097 H 262.8°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#0C2457
RGBrgb(12, 36, 87)
HSLhsl(221, 76%, 19%)
HSVhsv(221, 86%, 34%)
CMYKcmyk(86.2%, 58.6%, 0%, 65.9%)
CIE-LABlab(15.63, 12.40, -33.46)
CIE-LCHlch(15.63, 35.68, 290.33°)
OKLaboklab(27.7% -0.0122 -0.0965)
OKLCHoklch(27.7% 0.097 262.8)
XYZxyz(2.5022, 2.0277, 9.2745)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2457 #573F0C
analogous
#0C4A57 #0C2457 #1A0C57
triadic
#0C2457 #570C24 #24570C
tetradic
#0C2457 #570C4A #573F0C #0C571A
square
#0C2457 #570C4A #573F0C #0C571A
split-complementary
#0C2457 #571A0C #4A570C
monochromatic
#040B1B #050E21 #0C2457 #133A8D #1B51C3

Accessibility & contrast

On white

14.94
#0C2457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#0C2457 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C2457
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2457#FFFFFF#000000##FFFFFF
##0C24571.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B59
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#003139
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0c2457;
/* rgb */ color: rgb(12, 36, 87);
/* oklch */ color: oklch(27.7% 0.097 262.8);
Tailwind
colors: {
  custom: {
    50: '#595e87',
    500: '#0c2457',
    950: '#000000',
  },
}
SCSS
$custom: #0c2457;
$custom-light: #595e87;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2457",
  "rgb": {
    "r": 12,
    "g": 36,
    "b": 87
  },
  "hsl": {
    "h": 220.8,
    "s": 75.758,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27703,
    "c": 0.09728,
    "h": 262.8
  },
  "luminance": 0.02028
}

Semantic roles & 50–950 ramp

primary
#0C2457
secondary
#92722D
accent
#B635F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2457

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

Preview Lab → · Contrast checker → · Palette generator →

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