#0C0F4F#0C0F4F

#0C0F4F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.5% C 0.113 H 270.9°. Best body text is #FFFFFF at 17.55:1 contrast (WCAG AA passes).

Color values

HEX#0C0F4F
RGBrgb(12, 15, 79)
HSLhsl(237, 74%, 18%)
HSVhsv(237, 85%, 31%)
CMYKcmyk(84.8%, 81%, 0%, 69%)
CIE-LABlab(8.86, 24.46, -39.10)
CIE-LCHlch(8.86, 46.12, 302.02°)
OKLaboklab(22.46% 0.0017 -0.1132)
OKLCHoklch(22.46% 0.113 270.9)
XYZxyz(1.7332, 0.9841, 7.4942)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C0F4F #4F4C0C
analogous
#0C314F #0C0F4F #2A0C4F
triadic
#0C0F4F #4F0C0F #0F4F0C
tetradic
#0C0F4F #4F0C31 #4F4C0C #0C4F2A
square
#0C0F4F #4F0C31 #4F4C0C #0C4F2A
split-complementary
#0C0F4F #4F2A0C #314F0C
monochromatic
#04051B #04051B #0C0F4F #141984 #1C23B9

Accessibility & contrast

On white

17.55
#0C0F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#0C0F4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C0F4F
17.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C0F4F#FFFFFF#000000##FFFFFF
##0C0F4F1.0017.551.2017.55
#FFFFFF17.551.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C51
Deuteranopia (green-blind)
#00164E
Tritanopia (blue-blind)
#00222E
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0c0f4f;
/* rgb */ color: rgb(12, 15, 79);
/* oklch */ color: oklch(22.5% 0.113 270.9);
Tailwind
colors: {
  custom: {
    50: '#594e81',
    500: '#0c0f4f',
    950: '#000000',
  },
}
SCSS
$custom: #0c0f4f;
$custom-light: #594e81;
$custom-dark: #000000;
JSON
{
  "hex": "#0c0f4f",
  "rgb": {
    "r": 12,
    "g": 15,
    "b": 79
  },
  "hsl": {
    "h": 237.313,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22458,
    "c": 0.11324,
    "h": 270.9
  },
  "luminance": 0.00984
}

Semantic roles & 50–950 ramp

primary
#0C0F4F
secondary
#8B862C
accent
#E838F0
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010A
muted
#79777C

Preview Lab

Preview with #0C0F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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