#0C1949#0C1949

#0C1949 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 23.8% C 0.091 H 267.3°. Best body text is #FFFFFF at 16.79:1 contrast (WCAG AA passes).

Color values

HEX#0C1949
RGBrgb(12, 25, 73)
HSLhsl(227, 72%, 17%)
HSVhsv(227, 84%, 29%)
CMYKcmyk(83.6%, 65.8%, 0%, 71.4%)
CIE-LABlab(10.95, 14.62, -31.51)
CIE-LCHlch(10.95, 34.74, 294.89°)
OKLaboklab(23.79% -0.0042 -0.091)
OKLCHoklch(23.79% 0.091 267.3)
XYZxyz(1.7014, 1.2543, 6.4545)
Luminance0.0125 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1949 #493C0C
analogous
#0C3849 #0C1949 #1E0C49
triadic
#0C1949 #490C19 #19490C
tetradic
#0C1949 #490C38 #493C0C #0C491E
square
#0C1949 #490C38 #493C0C #0C491E
split-complementary
#0C1949 #491E0C #38490C
monochromatic
#04091A #04091A #0C1949 #152B7E #1D3DB2

Accessibility & contrast

On white

16.79
#0C1949 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#0C1949 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1949
16.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1949#FFFFFF#000000##FFFFFF
##0C19491.0016.791.2516.79
#FFFFFF16.791.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00204B
Deuteranopia (green-blind)
#001B48
Tritanopia (blue-blind)
#00252E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0c1949;
/* rgb */ color: rgb(12, 25, 73);
/* oklch */ color: oklch(23.8% 0.091 267.3);
Tailwind
colors: {
  custom: {
    50: '#56557c',
    500: '#0c1949',
    950: '#000000',
  },
}
SCSS
$custom: #0c1949;
$custom-light: #56557c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1949",
  "rgb": {
    "r": 12,
    "g": 25,
    "b": 73
  },
  "hsl": {
    "h": 227.213,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.23788,
    "c": 0.0911,
    "h": 267.3
  },
  "luminance": 0.01254
}

Semantic roles & 50–950 ramp

primary
#0C1949
secondary
#85722C
accent
#C839EE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1949

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

Preview Lab → · Contrast checker → · Palette generator →

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