#0C1A49#0C1A49

#0C1A49 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.0% C 0.090 H 266.8°. Best body text is #FFFFFF at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#0C1A49
RGBrgb(12, 26, 73)
HSLhsl(226, 72%, 17%)
HSVhsv(226, 84%, 29%)
CMYKcmyk(83.6%, 64.4%, 0%, 71.4%)
CIE-LABlab(11.26, 13.85, -31.01)
CIE-LCHlch(11.26, 33.96, 294.07°)
OKLaboklab(24.02% -0.0051 -0.0895)
OKLCHoklch(24.02% 0.09 266.8)
XYZxyz(1.7232, 1.2978, 6.4617)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1A49 #493B0C
analogous
#0C3949 #0C1A49 #1D0C49
triadic
#0C1A49 #490C1A #1A490C
tetradic
#0C1A49 #490C39 #493B0C #0C491D
square
#0C1A49 #490C39 #493B0C #0C491D
split-complementary
#0C1A49 #491D0C #39490C
monochromatic
#04091A #04091A #0C1A49 #152D7E #1D3FB2

Accessibility & contrast

On white

16.67
#0C1A49 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#0C1A49 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1A49
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1A49#FFFFFF#000000##FFFFFF
##0C1A491.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214B
Deuteranopia (green-blind)
#001B48
Tritanopia (blue-blind)
#00262E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0c1a49;
/* rgb */ color: rgb(12, 26, 73);
/* oklch */ color: oklch(24.0% 0.090 266.8);
Tailwind
colors: {
  custom: {
    50: '#56567c',
    500: '#0c1a49',
    950: '#000000',
  },
}
SCSS
$custom: #0c1a49;
$custom-light: #56567c;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1a49",
  "rgb": {
    "r": 12,
    "g": 26,
    "b": 73
  },
  "hsl": {
    "h": 226.23,
    "s": 71.765,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24018,
    "c": 0.08965,
    "h": 266.8
  },
  "luminance": 0.01298
}

Semantic roles & 50–950 ramp

primary
#0C1A49
secondary
#85702C
accent
#C539EE
background
#F5F5F7
surface
#E9E8EE
border
#C5C4C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1A49

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

Preview Lab → · Contrast checker → · Palette generator →

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