#0C1C49#0C1C49

#0C1C49 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.5% C 0.087 H 265.5°. Best body text is #FFFFFF at 16.43:1 contrast (WCAG AA passes).

Color values

HEX#0C1C49
RGBrgb(12, 28, 73)
HSLhsl(224, 72%, 17%)
HSVhsv(224, 84%, 29%)
CMYKcmyk(83.6%, 61.6%, 0%, 71.4%)
CIE-LABlab(11.89, 12.30, -29.99)
CIE-LCHlch(11.89, 32.42, 292.30°)
OKLaboklab(24.49% -0.0068 -0.0865)
OKLCHoklch(24.49% 0.087 265.5)
XYZxyz(1.7690, 1.3895, 6.4770)
Luminance0.0139 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1C49 #49390C
analogous
#0C3B49 #0C1C49 #1B0C49
triadic
#0C1C49 #490C1C #1C490C
tetradic
#0C1C49 #490C3B #49390C #0C491B
square
#0C1C49 #490C3B #49390C #0C491B
split-complementary
#0C1C49 #491B0C #3B490C
monochromatic
#040A1A #040A1A #0C1C49 #15307E #1D44B2

Accessibility & contrast

On white

16.43
#0C1C49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#0C1C49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1C49
16.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1C49#FFFFFF#000000##FFFFFF
##0C1C491.0016.431.2816.43
#FFFFFF16.431.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224B
Deuteranopia (green-blind)
#001D48
Tritanopia (blue-blind)
#00272F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #0c1c49;
/* rgb */ color: rgb(12, 28, 73);
/* oklch */ color: oklch(24.5% 0.087 265.5);
Tailwind
colors: {
  custom: {
    50: '#56577c',
    500: '#0c1c49',
    950: '#000000',
  },
}
SCSS
$custom: #0c1c49;
$custom-light: #56577c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1c49",
  "rgb": {
    "r": 12,
    "g": 28,
    "b": 73
  },
  "hsl": {
    "h": 224.262,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.2449,
    "c": 0.08674,
    "h": 265.5
  },
  "luminance": 0.0139
}

Semantic roles & 50–950 ramp

primary
#0C1C49
secondary
#856E2C
accent
#BF39EE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1C49

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

Preview Lab → · Contrast checker → · Palette generator →

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