#0C0F45#0C0F45

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

Color values

HEX#0C0F45
RGBrgb(12, 15, 69)
HSLhsl(237, 70%, 16%)
HSVhsv(237, 83%, 27%)
CMYKcmyk(82.6%, 78.3%, 0%, 72.9%)
CIE-LABlab(7.67, 20.42, -34.09)
CIE-LCHlch(7.67, 39.74, 300.93°)
OKLaboklab(21.25% 0.0034 -0.0986)
OKLCHoklch(21.25% 0.099 272)
XYZxyz(1.3963, 0.8493, 5.7194)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0F45 #45420C
analogous
#0C2B45 #0C0F45 #250C45
triadic
#0C0F45 #450C0F #0F450C
tetradic
#0C0F45 #450C2B #45420C #0C4525
square
#0C0F45 #450C2B #45420C #0C4525
split-complementary
#0C0F45 #45250C #2B450C
monochromatic
#05061A #05061A #0C0F45 #151A79 #1E26AD

Accessibility & contrast

On white

17.95
#0C0F45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C0F45
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0F45#FFFFFF#000000##FFFFFF
##0C0F451.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c0f45;
/* rgb */ color: rgb(12, 15, 69);
/* oklch */ color: oklch(21.2% 0.099 272.0);
Tailwind
colors: {
  custom: {
    50: '#564d79',
    500: '#0c0f45',
    950: '#000000',
  },
}
SCSS
$custom: #0c0f45;
$custom-light: #564d79;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0f45",
  "rgb": {
    "r": 12,
    "g": 15,
    "b": 69
  },
  "hsl": {
    "h": 236.842,
    "s": 70.37,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21249,
    "c": 0.09871,
    "h": 272
  },
  "luminance": 0.00849
}

Semantic roles & 50–950 ramp

primary
#0C0F45
secondary
#817C2C
accent
#E43BED
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0C0F45

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

Preview Lab → · Contrast checker → · Palette generator →

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