#0C1E45#0C1E45

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

Color values

HEX#0C1E45
RGBrgb(12, 30, 69)
HSLhsl(221, 70%, 16%)
HSVhsv(221, 83%, 27%)
CMYKcmyk(82.6%, 56.5%, 0%, 72.9%)
CIE-LABlab(12.20, 8.96, -26.71)
CIE-LCHlch(12.20, 28.17, 288.54°)
OKLaboklab(24.62% -0.0091 -0.0768)
OKLCHoklch(24.62% 0.077 263.2)
XYZxyz(1.6897, 1.4362, 5.8172)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C1E45 #45330C
analogous
#0C3A45 #0C1E45 #160C45
triadic
#0C1E45 #450C1E #1E450C
tetradic
#0C1E45 #450C3A #45330C #0C4516
square
#0C1E45 #450C3A #45330C #0C4516
split-complementary
#0C1E45 #45160C #3A450C
monochromatic
#050B1A #050B1A #0C1E45 #153579 #1E4BAD

Accessibility & contrast

On white

16.31
#0C1E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C1E45
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C1E45#FFFFFF#000000##FFFFFF
##0C1E451.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072346
Deuteranopia (green-blind)
#001D44
Tritanopia (blue-blind)
#00272E
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0c1e45;
/* rgb */ color: rgb(12, 30, 69);
/* oklch */ color: oklch(24.6% 0.077 263.2);
Tailwind
colors: {
  custom: {
    50: '#545979',
    500: '#0c1e45',
    950: '#000000',
  },
}
SCSS
$custom: #0c1e45;
$custom-light: #545979;
$custom-dark: #000000;
JSON
{
  "hex": "#0c1e45",
  "rgb": {
    "r": 12,
    "g": 30,
    "b": 69
  },
  "hsl": {
    "h": 221.053,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.24616,
    "c": 0.07732,
    "h": 263.2
  },
  "luminance": 0.01436
}

Semantic roles & 50–950 ramp

primary
#0C1E45
secondary
#81662C
accent
#B53BED
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030309
muted
#78787B

Preview Lab

Preview with #0C1E45

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

Preview Lab → · Contrast checker → · Palette generator →

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