#0C1D48#0C1D48

#0C1D48 is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.6% C 0.084 H 264.7°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#0C1D48
RGBrgb(12, 29, 72)
HSLhsl(223, 71%, 16%)
HSVhsv(223, 83%, 28%)
CMYKcmyk(83.3%, 59.7%, 0%, 71.8%)
CIE-LABlab(12.12, 11.08, -28.92)
CIE-LCHlch(12.12, 30.97, 290.96°)
OKLaboklab(24.64% -0.0078 -0.0833)
OKLCHoklch(24.64% 0.084 264.7)
XYZxyz(1.7603, 1.4246, 6.3118)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1D48 #48370C
analogous
#0C3B48 #0C1D48 #190C48
triadic
#0C1D48 #480C1D #1D480C
tetradic
#0C1D48 #480C3B #48370C #0C4819
square
#0C1D48 #480C3B #48370C #0C4819
split-complementary
#0C1D48 #48190C #3B480C
monochromatic
#040B1A #040B1A #0C1D48 #15327C #1D47B1

Accessibility & contrast

On white

16.34
#0C1D48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#0C1D48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1D48
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1D48#FFFFFF#000000##FFFFFF
##0C1D481.0016.341.2916.34
#FFFFFF16.341.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01234A
Deuteranopia (green-blind)
#001D47
Tritanopia (blue-blind)
#00272F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1d48;
/* rgb */ color: rgb(12, 29, 72);
/* oklch */ color: oklch(24.6% 0.084 264.7);
Tailwind
colors: {
  custom: {
    50: '#55587b',
    500: '#0c1d48',
    950: '#000000',
  },
}
SCSS
$custom: #0c1d48;
$custom-light: #55587b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1d48",
  "rgb": {
    "r": 12,
    "g": 29,
    "b": 72
  },
  "hsl": {
    "h": 223,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24638,
    "c": 0.08366,
    "h": 264.7
  },
  "luminance": 0.01425
}

Semantic roles & 50–950 ramp

primary
#0C1D48
secondary
#846B2C
accent
#BB3AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1D48

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

Preview Lab → · Contrast checker → · Palette generator →

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