#0C1B4E#0C1B4E

#0C1B4E is a very dark, moderate blue. Relative luminance 0.014; OKLCH L 24.7% C 0.096 H 266.6°. Best body text is #FFFFFF at 16.38:1 contrast (WCAG AA passes).

Color values

HEX#0C1B4E
RGBrgb(12, 27, 78)
HSLhsl(226, 73%, 18%)
HSVhsv(226, 85%, 31%)
CMYKcmyk(84.6%, 65.4%, 0%, 69.4%)
CIE-LABlab(12.04, 15.28, -33.20)
CIE-LCHlch(12.04, 36.55, 294.72°)
OKLaboklab(24.75% -0.0057 -0.0959)
OKLCHoklch(24.75% 0.096 266.6)
XYZxyz(1.9182, 1.4119, 7.3777)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1B4E #4E3F0C
analogous
#0C3C4E #0C1B4E #1E0C4E
triadic
#0C1B4E #4E0C1B #1B4E0C
tetradic
#0C1B4E #4E0C3C #4E3F0C #0C4E1E
square
#0C1B4E #4E0C3C #4E3F0C #0C4E1E
split-complementary
#0C1B4E #4E1E0C #3C4E0C
monochromatic
#04091B #04091B #0C1B4E #142D83 #1C40B8

Accessibility & contrast

On white

16.38
#0C1B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#0C1B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C1B4E
16.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1B4E#FFFFFF#000000##FFFFFF
##0C1B4E1.0016.381.2816.38
#FFFFFF16.381.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#001D4D
Tritanopia (blue-blind)
#002831
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1b4e;
/* rgb */ color: rgb(12, 27, 78);
/* oklch */ color: oklch(24.7% 0.096 266.6);
Tailwind
colors: {
  custom: {
    50: '#575680',
    500: '#0c1b4e',
    950: '#000000',
  },
}
SCSS
$custom: #0c1b4e;
$custom-light: #575680;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1b4e",
  "rgb": {
    "r": 12,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 226.364,
    "s": 73.333,
    "l": 17.647
  },
  "oklch": {
    "l": 0.24745,
    "c": 0.09608,
    "h": 266.6
  },
  "luminance": 0.01412
}

Semantic roles & 50–950 ramp

primary
#0C1B4E
secondary
#8A742C
accent
#C638F0
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0C1B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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