#0C1B48#0C1B48

#0C1B48 is a very dark, moderate blue. Relative luminance 0.013; OKLCH L 24.2% C 0.087 H 266.0°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#0C1B48
RGBrgb(12, 27, 72)
HSLhsl(225, 71%, 16%)
HSVhsv(225, 83%, 28%)
CMYKcmyk(83.3%, 62.5%, 0%, 71.8%)
CIE-LABlab(11.48, 12.63, -29.96)
CIE-LCHlch(11.48, 32.51, 292.86°)
OKLaboklab(24.16% -0.006 -0.0864)
OKLCHoklch(24.16% 0.087 266)
XYZxyz(1.7128, 1.3297, 6.2960)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1B48 #48390C
analogous
#0C3948 #0C1B48 #1B0C48
triadic
#0C1B48 #480C1B #1B480C
tetradic
#0C1B48 #480C39 #48390C #0C481B
square
#0C1B48 #480C39 #48390C #0C481B
split-complementary
#0C1B48 #481B0C #39480C
monochromatic
#040A1A #040A1A #0C1B48 #152F7C #1D42B1

Accessibility & contrast

On white

16.59
#0C1B48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1B48
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1B48#FFFFFF#000000##FFFFFF
##0C1B481.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c1b48;
/* rgb */ color: rgb(12, 27, 72);
/* oklch */ color: oklch(24.2% 0.087 266.0);
Tailwind
colors: {
  custom: {
    50: '#55567b',
    500: '#0c1b48',
    950: '#000000',
  },
}
SCSS
$custom: #0c1b48;
$custom-light: #55567b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1b48",
  "rgb": {
    "r": 12,
    "g": 27,
    "b": 72
  },
  "hsl": {
    "h": 225,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24156,
    "c": 0.0866,
    "h": 266
  },
  "luminance": 0.0133
}

Semantic roles & 50–950 ramp

primary
#0C1B48
secondary
#846E2C
accent
#C13AEE
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1B48

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

Preview Lab → · Contrast checker → · Palette generator →

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