#0C0F55#0C0F55

#0C0F55 is a very dark, vivid blue. Relative luminance 0.011; OKLCH L 23.2% C 0.122 H 270.3°. Best body text is #FFFFFF at 17.28:1 contrast (WCAG AA passes).

Color values

HEX#0C0F55
RGBrgb(12, 15, 85)
HSLhsl(238, 75%, 19%)
HSVhsv(238, 86%, 33%)
CMYKcmyk(85.9%, 82.4%, 0%, 66.7%)
CIE-LABlab(9.61, 26.78, -41.98)
CIE-LCHlch(9.61, 49.80, 302.53°)
OKLaboklab(23.21% 0.0006 -0.1216)
OKLCHoklch(23.21% 0.122 270.3)
XYZxyz(1.9616, 1.0755, 8.6968)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0F55 #55520C
analogous
#0C3455 #0C0F55 #2E0C55
triadic
#0C0F55 #550C0F #0F550C
tetradic
#0C0F55 #550C34 #55520C #0C552E
square
#0C0F55 #550C34 #55520C #0C552E
split-complementary
#0C0F55 #552E0C #34550C
monochromatic
#04051B #04061F #0C0F55 #14188B #1B22C0

Accessibility & contrast

On white

17.28
#0C0F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#0C0F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0F55
17.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0F55#FFFFFF#000000##FFFFFF
##0C0F551.0017.281.2217.28
#FFFFFF17.281.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E57
Deuteranopia (green-blind)
#001754
Tritanopia (blue-blind)
#002431
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0c0f55;
/* rgb */ color: rgb(12, 15, 85);
/* oklch */ color: oklch(23.2% 0.122 270.3);
Tailwind
colors: {
  custom: {
    50: '#5b4e86',
    500: '#0c0f55',
    950: '#000000',
  },
}
SCSS
$custom: #0c0f55;
$custom-light: #5b4e86;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0f55",
  "rgb": {
    "r": 12,
    "g": 15,
    "b": 85
  },
  "hsl": {
    "h": 237.534,
    "s": 75.258,
    "l": 19.02
  },
  "oklch": {
    "l": 0.23208,
    "c": 0.1216,
    "h": 270.3
  },
  "luminance": 0.01076
}

Semantic roles & 50–950 ramp

primary
#0C0F55
secondary
#908C2D
accent
#EA36F2
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05010B
muted
#79777C

Preview Lab

Preview with #0C0F55

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

Preview Lab → · Contrast checker → · Palette generator →

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