#0F0F4D#0F0F4D

#0F0F4D is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.4% C 0.110 H 273.2°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#0F0F4D
RGBrgb(15, 15, 77)
HSLhsl(240, 67%, 18%)
HSVhsv(240, 81%, 30%)
CMYKcmyk(80.5%, 80.5%, 0%, 69.8%)
CIE-LABlab(8.81, 23.98, -37.79)
CIE-LCHlch(8.81, 44.75, 302.40°)
OKLaboklab(22.41% 0.006 -0.1093)
OKLCHoklch(22.41% 0.11 273.2)
XYZxyz(1.7069, 0.9789, 7.1187)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0F4D #4D4D0F
analogous
#0F2E4D #0F0F4D #2E0F4D
triadic
#0F0F4D #4D0F0F #0F4D0F
tetradic
#0F0F4D #4D0F2E #4D4D0F #0F4D2E
square
#0F0F4D #4D0F2E #4D4D0F #0F4D2E
split-complementary
#0F0F4D #4D2E0F #2E4D0F
monochromatic
#05051A #05051A #0F0F4D #191980 #2323B3

Accessibility & contrast

On white

17.56
#0F0F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0F4D
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0F4D#FFFFFF#000000##FFFFFF
##0F0F4D1.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4F
Deuteranopia (green-blind)
#00164C
Tritanopia (blue-blind)
#00212D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0f0f4d;
/* rgb */ color: rgb(15, 15, 77);
/* oklch */ color: oklch(22.4% 0.110 273.2);
Tailwind
colors: {
  custom: {
    50: '#594e80',
    500: '#0f0f4d',
    950: '#000000',
  },
}
SCSS
$custom: #0f0f4d;
$custom-light: #594e80;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0f4d",
  "rgb": {
    "r": 15,
    "g": 15,
    "b": 77
  },
  "hsl": {
    "h": 240,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.22408,
    "c": 0.1095,
    "h": 273.2
  },
  "luminance": 0.00979
}

Semantic roles & 50–950 ramp

primary
#0F0F4D
secondary
#878731
accent
#EA3EEA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04010A
muted
#79777C

Preview Lab

Preview with #0F0F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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