#0C1A48#0C1A48

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

Color values

HEX#0C1A48
RGBrgb(12, 26, 72)
HSLhsl(226, 71%, 16%)
HSVhsv(226, 83%, 28%)
CMYKcmyk(83.3%, 63.9%, 0%, 71.8%)
CIE-LABlab(11.17, 13.41, -30.47)
CIE-LCHlch(11.17, 33.29, 293.76°)
OKLaboklab(23.92% -0.0051 -0.0879)
OKLCHoklch(23.92% 0.088 266.7)
XYZxyz(1.6903, 1.2846, 6.2885)
Luminance0.0129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1A48 #483A0C
analogous
#0C3848 #0C1A48 #1C0C48
triadic
#0C1A48 #480C1A #1A480C
tetradic
#0C1A48 #480C38 #483A0C #0C481C
square
#0C1A48 #480C38 #483A0C #0C481C
split-complementary
#0C1A48 #481C0C #38480C
monochromatic
#04091A #04091A #0C1A48 #152D7C #1D40B1

Accessibility & contrast

On white

16.71
#0C1A48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1A48
16.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1A48#FFFFFF#000000##FFFFFF
##0C1A481.0016.711.2616.71
#FFFFFF16.711.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#001B47
Tritanopia (blue-blind)
#00252E
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #0c1a48;
/* rgb */ color: rgb(12, 26, 72);
/* oklch */ color: oklch(23.9% 0.088 266.7);
Tailwind
colors: {
  custom: {
    50: '#56567b',
    500: '#0c1a48',
    950: '#000000',
  },
}
SCSS
$custom: #0c1a48;
$custom-light: #56567b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1a48",
  "rgb": {
    "r": 12,
    "g": 26,
    "b": 72
  },
  "hsl": {
    "h": 226,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.2392,
    "c": 0.08806,
    "h": 266.7
  },
  "luminance": 0.01285
}

Semantic roles & 50–950 ramp

primary
#0C1A48
secondary
#846F2C
accent
#C43AEE
background
#F5F5F7
surface
#E9E8EE
border
#C5C4C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1A48

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

Preview Lab → · Contrast checker → · Palette generator →

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