#0F0C4F#0F0C4F

#0F0C4F is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.2% C 0.116 H 273.5°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#0F0C4F
RGBrgb(15, 12, 79)
HSLhsl(243, 74%, 18%)
HSVhsv(243, 85%, 31%)
CMYKcmyk(81%, 84.8%, 0%, 69%)
CIE-LABlab(8.38, 26.66, -39.88)
CIE-LCHlch(8.38, 47.97, 303.76°)
OKLaboklab(22.18% 0.0071 -0.1154)
OKLCHoklch(22.18% 0.116 273.5)
XYZxyz(1.7393, 0.9288, 7.4832)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0C4F #4C4F0C
analogous
#0C2A4F #0F0C4F #310C4F
triadic
#0F0C4F #4F0F0C #0C4F0F
tetradic
#0F0C4F #4F0C2A #4C4F0C #0C4F31
square
#0F0C4F #4F0C2A #4C4F0C #0C4F31
split-complementary
#0F0C4F #4F310C #2A4F0C
monochromatic
#05041B #05041B #0F0C4F #191484 #231CB9

Accessibility & contrast

On white

17.71
#0F0C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0F0C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0C4F
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0C4F#FFFFFF#000000##FFFFFF
##0F0C4F1.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B51
Deuteranopia (green-blind)
#00154E
Tritanopia (blue-blind)
#00202D
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0f0c4f;
/* rgb */ color: rgb(15, 12, 79);
/* oklch */ color: oklch(22.2% 0.116 273.5);
Tailwind
colors: {
  custom: {
    50: '#5a4c81',
    500: '#0f0c4f',
    950: '#000000',
  },
}
SCSS
$custom: #0f0c4f;
$custom-light: #5a4c81;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0c4f",
  "rgb": {
    "r": 15,
    "g": 12,
    "b": 79
  },
  "hsl": {
    "h": 242.687,
    "s": 73.626,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22177,
    "c": 0.11561,
    "h": 273.5
  },
  "luminance": 0.00929
}

Semantic roles & 50–950 ramp

primary
#0F0C4F
secondary
#868B2C
accent
#F038E8
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010A
muted
#79777C

Preview Lab

Preview with #0F0C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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