#0C0F46#0C0F46

#0C0F46 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.4% C 0.100 H 271.9°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#0C0F46
RGBrgb(12, 15, 70)
HSLhsl(237, 71%, 16%)
HSVhsv(237, 83%, 27%)
CMYKcmyk(82.9%, 78.6%, 0%, 72.5%)
CIE-LABlab(7.79, 20.84, -34.61)
CIE-LCHlch(7.79, 40.40, 301.06°)
OKLaboklab(21.37% 0.0033 -0.1001)
OKLCHoklch(21.37% 0.1 271.9)
XYZxyz(1.4276, 0.8619, 5.8843)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0F46 #46430C
analogous
#0C2C46 #0C0F46 #260C46
triadic
#0C0F46 #460C0F #0F460C
tetradic
#0C0F46 #460C2C #46430C #0C4626
square
#0C0F46 #460C2C #46430C #0C4626
split-complementary
#0C0F46 #46260C #2C460C
monochromatic
#04061A #04061A #0C0F46 #151A7A #1E25AE

Accessibility & contrast

On white

17.91
#0C0F46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0F46
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0F46#FFFFFF#000000##FFFFFF
##0C0F461.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0f46;
/* rgb */ color: rgb(12, 15, 70);
/* oklch */ color: oklch(21.4% 0.100 271.9);
Tailwind
colors: {
  custom: {
    50: '#564d7a',
    500: '#0c0f46',
    950: '#000000',
  },
}
SCSS
$custom: #0c0f46;
$custom-light: #564d7a;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0f46",
  "rgb": {
    "r": 12,
    "g": 15,
    "b": 70
  },
  "hsl": {
    "h": 236.897,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.21368,
    "c": 0.10019,
    "h": 271.9
  },
  "luminance": 0.00862
}

Semantic roles & 50–950 ramp

primary
#0C0F46
secondary
#827D2C
accent
#E43AED
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#030109
muted
#78777B

Preview Lab

Preview with #0C0F46

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

Preview Lab → · Contrast checker → · Palette generator →

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