#0C1E46#0C1E46

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

Color values

HEX#0C1E46
RGBrgb(12, 30, 70)
HSLhsl(221, 71%, 16%)
HSVhsv(221, 83%, 27%)
CMYKcmyk(82.9%, 57.1%, 0%, 72.5%)
CIE-LABlab(12.28, 9.41, -27.28)
CIE-LCHlch(12.28, 28.85, 289.03°)
OKLaboklab(24.7% -0.009 -0.0784)
OKLCHoklch(24.7% 0.079 263.5)
XYZxyz(1.7210, 1.4487, 5.9821)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1E46 #46340C
analogous
#0C3B46 #0C1E46 #170C46
triadic
#0C1E46 #460C1E #1E460C
tetradic
#0C1E46 #460C3B #46340C #0C4617
square
#0C1E46 #460C3B #46340C #0C4617
split-complementary
#0C1E46 #46170C #3B460C
monochromatic
#040B1A #040B1A #0C1E46 #15347A #1E4BAE

Accessibility & contrast

On white

16.28
#0C1E46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1E46
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1E46#FFFFFF#000000##FFFFFF
##0C1E461.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#062347
Deuteranopia (green-blind)
#001E45
Tritanopia (blue-blind)
#00282E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1e46;
/* rgb */ color: rgb(12, 30, 70);
/* oklch */ color: oklch(24.7% 0.079 263.5);
Tailwind
colors: {
  custom: {
    50: '#55597a',
    500: '#0c1e46',
    950: '#000000',
  },
}
SCSS
$custom: #0c1e46;
$custom-light: #55597a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1e46",
  "rgb": {
    "r": 12,
    "g": 30,
    "b": 70
  },
  "hsl": {
    "h": 221.379,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24704,
    "c": 0.07895,
    "h": 263.5
  },
  "luminance": 0.01449
}

Semantic roles & 50–950 ramp

primary
#0C1E46
secondary
#82672C
accent
#B63AED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1E46

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

Preview Lab → · Contrast checker → · Palette generator →

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