#0C0E46#0C0E46

#0C0E46 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.2% C 0.101 H 272.2°. Best body text is #FFFFFF at 18.00:1 contrast (WCAG AA passes).

Color values

HEX#0C0E46
RGBrgb(12, 14, 70)
HSLhsl(238, 71%, 16%)
HSVhsv(238, 83%, 27%)
CMYKcmyk(82.9%, 80%, 0%, 72.5%)
CIE-LABlab(7.54, 21.52, -35.02)
CIE-LCHlch(7.54, 41.10, 301.57°)
OKLaboklab(21.18% 0.0039 -0.1014)
OKLCHoklch(21.18% 0.101 272.2)
XYZxyz(1.4138, 0.8343, 5.8797)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0E46 #46440C
analogous
#0C2B46 #0C0E46 #270C46
triadic
#0C0E46 #460C0E #0E460C
tetradic
#0C0E46 #460C2B #46440C #0C4627
square
#0C0E46 #460C2B #46440C #0C4627
split-complementary
#0C0E46 #46270C #2B460C
monochromatic
#04051A #04051A #0C0E46 #15187A #1E23AE

Accessibility & contrast

On white

18.00
#0C0E46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0E46
18.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0E46#FFFFFF#000000##FFFFFF
##0C0E461.0018.001.1718.00
#FFFFFF18.001.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001948
Deuteranopia (green-blind)
#001445
Tritanopia (blue-blind)
#001E28
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0c0e46;
/* rgb */ color: rgb(12, 14, 70);
/* oklch */ color: oklch(21.2% 0.101 272.2);
Tailwind
colors: {
  custom: {
    50: '#564c7a',
    500: '#0c0e46',
    950: '#000000',
  },
}
SCSS
$custom: #0c0e46;
$custom-light: #564c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0e46",
  "rgb": {
    "r": 12,
    "g": 14,
    "b": 70
  },
  "hsl": {
    "h": 237.931,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.21183,
    "c": 0.10144,
    "h": 272.2
  },
  "luminance": 0.00834
}

Semantic roles & 50–950 ramp

primary
#0C0E46
secondary
#827F2C
accent
#E73AED
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030109
muted
#78777B

Preview Lab

Preview with #0C0E46

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

Preview Lab → · Contrast checker → · Palette generator →

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