#0C0E47#0C0E47

#0C0E47 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.3% C 0.103 H 272.1°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#0C0E47
RGBrgb(12, 14, 71)
HSLhsl(238, 71%, 16%)
HSVhsv(238, 83%, 28%)
CMYKcmyk(83.1%, 80.3%, 0%, 72.2%)
CIE-LABlab(7.65, 21.94, -35.53)
CIE-LCHlch(7.65, 41.76, 301.69°)
OKLaboklab(21.3% 0.0037 -0.1028)
OKLCHoklch(21.3% 0.103 272.1)
XYZxyz(1.4456, 0.8470, 6.0473)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0E47 #47450C
analogous
#0C2C47 #0C0E47 #280C47
triadic
#0C0E47 #470C0E #0E470C
tetradic
#0C0E47 #470C2C #47450C #0C4728
square
#0C0E47 #470C2C #47450C #0C4728
split-complementary
#0C0E47 #47280C #2C470C
monochromatic
#04051A #04051A #0C0E47 #15187B #1E23B0

Accessibility & contrast

On white

17.96
#0C0E47 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0C0E47 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0E47
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0E47#FFFFFF#000000##FFFFFF
##0C0E471.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A49
Deuteranopia (green-blind)
#001446
Tritanopia (blue-blind)
#001E29
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0c0e47;
/* rgb */ color: rgb(12, 14, 71);
/* oklch */ color: oklch(21.3% 0.103 272.1);
Tailwind
colors: {
  custom: {
    50: '#574d7b',
    500: '#0c0e47',
    950: '#000000',
  },
}
SCSS
$custom: #0c0e47;
$custom-light: #574d7b;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0e47",
  "rgb": {
    "r": 12,
    "g": 14,
    "b": 71
  },
  "hsl": {
    "h": 237.966,
    "s": 71.084,
    "l": 16.275
  },
  "oklch": {
    "l": 0.21304,
    "c": 0.10292,
    "h": 272.1
  },
  "luminance": 0.00847
}

Semantic roles & 50–950 ramp

primary
#0C0E47
secondary
#83802C
accent
#E83AEE
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #0C0E47

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

Preview Lab → · Contrast checker → · Palette generator →

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