#0C1B49#0C1B49

#0C1B49 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.3% C 0.088 H 266.2°. Best body text is #FFFFFF at 16.55:1 contrast (WCAG AA passes).

Color values

HEX#0C1B49
RGBrgb(12, 27, 73)
HSLhsl(225, 72%, 17%)
HSVhsv(225, 84%, 29%)
CMYKcmyk(83.6%, 63%, 0%, 71.4%)
CIE-LABlab(11.57, 13.07, -30.50)
CIE-LCHlch(11.57, 33.19, 293.20°)
OKLaboklab(24.25% -0.0059 -0.088)
OKLCHoklch(24.25% 0.088 266.2)
XYZxyz(1.7457, 1.3429, 6.4692)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1B49 #493A0C
analogous
#0C3A49 #0C1B49 #1C0C49
triadic
#0C1B49 #490C1B #1B490C
tetradic
#0C1B49 #490C3A #493A0C #0C491C
square
#0C1B49 #490C3A #493A0C #0C491C
split-complementary
#0C1B49 #491C0C #3A490C
monochromatic
#040A1A #040A1A #0C1B49 #152E7E #1D42B2

Accessibility & contrast

On white

16.55
#0C1B49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#0C1B49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1B49
16.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1B49#FFFFFF#000000##FFFFFF
##0C1B491.0016.551.2716.55
#FFFFFF16.551.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00224B
Deuteranopia (green-blind)
#001C48
Tritanopia (blue-blind)
#00262E
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #0c1b49;
/* rgb */ color: rgb(12, 27, 73);
/* oklch */ color: oklch(24.3% 0.088 266.2);
Tailwind
colors: {
  custom: {
    50: '#56567c',
    500: '#0c1b49',
    950: '#000000',
  },
}
SCSS
$custom: #0c1b49;
$custom-light: #56567c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1b49",
  "rgb": {
    "r": 12,
    "g": 27,
    "b": 73
  },
  "hsl": {
    "h": 225.246,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24252,
    "c": 0.0882,
    "h": 266.2
  },
  "luminance": 0.01343
}

Semantic roles & 50–950 ramp

primary
#0C1B49
secondary
#856F2C
accent
#C239EE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1B49

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

Preview Lab → · Contrast checker → · Palette generator →

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