#0C2555#0C2555

#0C2555 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.8% C 0.093 H 261.8°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#0C2555
RGBrgb(12, 37, 85)
HSLhsl(219, 75%, 19%)
HSVhsv(219, 86%, 33%)
CMYKcmyk(85.9%, 56.5%, 0%, 66.7%)
CIE-LABlab(15.78, 10.75, -31.87)
CIE-LCHlch(15.78, 33.63, 288.64°)
OKLaboklab(27.77% -0.0133 -0.0918)
OKLCHoklch(27.77% 0.093 261.8)
XYZxyz(2.4523, 2.0569, 8.8603)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C2555 #553C0C
analogous
#0C4A55 #0C2555 #180C55
triadic
#0C2555 #550C25 #25550C
tetradic
#0C2555 #550C4A #553C0C #0C5518
square
#0C2555 #550C4A #553C0C #0C5518
split-complementary
#0C2555 #55180C #4A550C
monochromatic
#040C1B #040E1F #0C2555 #143C8B #1B54C0

Accessibility & contrast

On white

14.88
#0C2555 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C2555
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C2555#FFFFFF#000000##FFFFFF
##0C25551.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#052B57
Deuteranopia (green-blind)
#002454
Tritanopia (blue-blind)
#003139
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0c2555;
/* rgb */ color: rgb(12, 37, 85);
/* oklch */ color: oklch(27.8% 0.093 261.8);
Tailwind
colors: {
  custom: {
    50: '#595e85',
    500: '#0c2555',
    950: '#000000',
  },
}
SCSS
$custom: #0c2555;
$custom-light: #595e85;
$custom-dark: #000000;
JSON
{
  "hex": "#0c2555",
  "rgb": {
    "r": 12,
    "g": 37,
    "b": 85
  },
  "hsl": {
    "h": 219.452,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.27765,
    "c": 0.09277,
    "h": 261.8
  },
  "luminance": 0.02057
}

Semantic roles & 50–950 ramp

primary
#0C2555
secondary
#906E2D
accent
#B236F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040B
muted
#79797C

Preview Lab

Preview with #0C2555

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

Preview Lab → · Contrast checker → · Palette generator →

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