#0C0E45#0C0E45

#0C0E45 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.1% C 0.100 H 272.3°. Best body text is #FFFFFF at 18.04:1 contrast (WCAG AA passes).

Color values

HEX#0C0E45
RGBrgb(12, 14, 69)
HSLhsl(238, 70%, 16%)
HSVhsv(238, 83%, 27%)
CMYKcmyk(82.6%, 79.7%, 0%, 72.9%)
CIE-LABlab(7.42, 21.09, -34.50)
CIE-LCHlch(7.42, 40.43, 301.44°)
OKLaboklab(21.06% 0.004 -0.0999)
OKLCHoklch(21.06% 0.1 272.3)
XYZxyz(1.3825, 0.8218, 5.7148)
Luminance0.0082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0E45 #45430C
analogous
#0C2A45 #0C0E45 #260C45
triadic
#0C0E45 #450C0E #0E450C
tetradic
#0C0E45 #450C2A #45430C #0C4526
square
#0C0E45 #450C2A #45430C #0C4526
split-complementary
#0C0E45 #45260C #2A450C
monochromatic
#05051A #05051A #0C0E45 #151979 #1E23AD

Accessibility & contrast

On white

18.04
#0C0E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0C0E45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0E45
18.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0E45#FFFFFF#000000##FFFFFF
##0C0E451.0018.041.1618.04
#FFFFFF18.041.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001947
Deuteranopia (green-blind)
#001444
Tritanopia (blue-blind)
#001D28
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0c0e45;
/* rgb */ color: rgb(12, 14, 69);
/* oklch */ color: oklch(21.1% 0.100 272.3);
Tailwind
colors: {
  custom: {
    50: '#564c79',
    500: '#0c0e45',
    950: '#000000',
  },
}
SCSS
$custom: #0c0e45;
$custom-light: #564c79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0e45",
  "rgb": {
    "r": 12,
    "g": 14,
    "b": 69
  },
  "hsl": {
    "h": 237.895,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21063,
    "c": 0.09997,
    "h": 272.3
  },
  "luminance": 0.00822
}

Semantic roles & 50–950 ramp

primary
#0C0E45
secondary
#817E2C
accent
#E73BED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C0E45

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

Preview Lab → · Contrast checker → · Palette generator →

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