#0F0F4A#0F0F4A

#0F0F4A is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 22.0% C 0.105 H 273.6°. Best body text is #FFFFFF at 17.68:1 contrast (WCAG AA passes).

Color values

HEX#0F0F4A
RGBrgb(15, 15, 74)
HSLhsl(240, 66%, 17%)
HSVhsv(240, 80%, 29%)
CMYKcmyk(79.7%, 79.7%, 0%, 71%)
CIE-LABlab(8.46, 22.81, -36.29)
CIE-LCHlch(8.46, 42.86, 302.15°)
OKLaboklab(22.05% 0.0066 -0.105)
OKLCHoklch(22.05% 0.105 273.6)
XYZxyz(1.6034, 0.9375, 6.5737)
Luminance0.0094 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0F4A #4A4A0F
analogous
#0F2D4A #0F0F4A #2D0F4A
triadic
#0F0F4A #4A0F0F #0F4A0F
tetradic
#0F0F4A #4A0F2D #4A4A0F #0F4A2D
square
#0F0F4A #4A0F2D #4A4A0F #0F4A2D
split-complementary
#0F0F4A #4A2D0F #2D4A0F
monochromatic
#050519 #050519 #0F0F4A #19197D #2424B0

Accessibility & contrast

On white

17.68
#0F0F4A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0F4A
17.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0F4A#FFFFFF#000000##FFFFFF
##0F0F4A1.0017.681.1917.68
#FFFFFF17.681.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4C
Deuteranopia (green-blind)
#001649
Tritanopia (blue-blind)
#00202B
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0f0f4a;
/* rgb */ color: rgb(15, 15, 74);
/* oklch */ color: oklch(22.0% 0.105 273.6);
Tailwind
colors: {
  custom: {
    50: '#594e7d',
    500: '#0f0f4a',
    950: '#000000',
  },
}
SCSS
$custom: #0f0f4a;
$custom-light: #594e7d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0f4a",
  "rgb": {
    "r": 15,
    "g": 15,
    "b": 74
  },
  "hsl": {
    "h": 240,
    "s": 66.292,
    "l": 17.451
  },
  "oklch": {
    "l": 0.22048,
    "c": 0.10517,
    "h": 273.6
  },
  "luminance": 0.00938
}

Semantic roles & 50–950 ramp

primary
#0F0F4A
secondary
#848430
accent
#E93FE9
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0F0F4A

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

Preview Lab → · Contrast checker → · Palette generator →

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