#0C1937#0C1937

#0C1937 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.1% C 0.061 H 264.4°. Best body text is #FFFFFF at 17.36:1 contrast (WCAG AA passes).

Color values

HEX#0C1937
RGBrgb(12, 25, 55)
HSLhsl(222, 64%, 13%)
HSVhsv(222, 78%, 22%)
CMYKcmyk(78.2%, 54.5%, 0%, 78.4%)
CIE-LABlab(9.39, 6.60, -21.31)
CIE-LCHlch(9.39, 22.31, 287.21°)
OKLaboklab(22.12% -0.006 -0.061)
OKLCHoklch(22.12% 0.061 264.4)
XYZxyz(1.1886, 1.0491, 3.7536)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1937 #372A0C
analogous
#0C2E37 #0C1937 #140C37
triadic
#0C1937 #370C19 #19370C
tetradic
#0C1937 #370C2E #372A0C #0C3714
square
#0C1937 #370C2E #372A0C #0C3714
split-complementary
#0C1937 #37140C #2E370C
monochromatic
#050B19 #050B19 #0C1937 #173069 #22479B

Accessibility & contrast

On white

17.36
#0C1937 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0C1937 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1937
17.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1937#FFFFFF#000000##FFFFFF
##0C19371.0017.361.2117.36
#FFFFFF17.361.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A1C38
Deuteranopia (green-blind)
#031836
Tritanopia (blue-blind)
#002025
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0c1937;
/* rgb */ color: rgb(12, 25, 55);
/* oklch */ color: oklch(22.1% 0.061 264.4);
Tailwind
colors: {
  custom: {
    50: '#51556e',
    500: '#0c1937',
    950: '#000000',
  },
}
SCSS
$custom: #0c1937;
$custom-light: #51556e;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1937",
  "rgb": {
    "r": 12,
    "g": 25,
    "b": 55
  },
  "hsl": {
    "h": 221.86,
    "s": 64.179,
    "l": 13.137
  },
  "oklch": {
    "l": 0.22118,
    "c": 0.06129,
    "h": 264.4
  },
  "luminance": 0.01049
}

Semantic roles & 50–950 ramp

primary
#0C1937
secondary
#735E2C
accent
#B541E7
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #0C1937

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

Preview Lab → · Contrast checker → · Palette generator →

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