#0C1F56#0C1F56

#0C1F56 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.4% C 0.103 H 265.3°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#0C1F56
RGBrgb(12, 31, 86)
HSLhsl(225, 76%, 19%)
HSVhsv(225, 86%, 34%)
CMYKcmyk(86%, 64%, 0%, 66.3%)
CIE-LABlab(14.00, 15.75, -35.44)
CIE-LCHlch(14.00, 38.78, 293.95°)
OKLaboklab(26.45% -0.0085 -0.1024)
OKLCHoklch(26.45% 0.103 265.3)
XYZxyz(2.3207, 1.7297, 9.0139)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1F56 #56430C
analogous
#0C4456 #0C1F56 #1E0C56
triadic
#0C1F56 #560C1F #1F560C
tetradic
#0C1F56 #560C44 #56430C #0C561E
square
#0C1F56 #560C44 #56430C #0C561E
split-complementary
#0C1F56 #561E0C #44560C
monochromatic
#040A1B #050C20 #0C1F56 #13328C #1B46C1

Accessibility & contrast

On white

15.60
#0C1F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0C1F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1F56
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1F56#FFFFFF#000000##FFFFFF
##0C1F561.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0c1f56;
/* rgb */ color: rgb(12, 31, 86);
/* oklch */ color: oklch(26.4% 0.103 265.3);
Tailwind
colors: {
  custom: {
    50: '#595a86',
    500: '#0c1f56',
    950: '#000000',
  },
}
SCSS
$custom: #0c1f56;
$custom-light: #595a86;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1f56",
  "rgb": {
    "r": 12,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 224.595,
    "s": 75.51,
    "l": 19.216
  },
  "oklch": {
    "l": 0.26446,
    "c": 0.10278,
    "h": 265.3
  },
  "luminance": 0.0173
}

Semantic roles & 50–950 ramp

primary
#0C1F56
secondary
#91772D
accent
#C236F2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0C1F56

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

Preview Lab → · Contrast checker → · Palette generator →

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