#0F0F48#0F0F48

#0F0F48 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.8% C 0.102 H 273.9°. Best body text is #FFFFFF at 17.76:1 contrast (WCAG AA passes).

Color values

HEX#0F0F48
RGBrgb(15, 15, 72)
HSLhsl(240, 66%, 17%)
HSVhsv(240, 79%, 28%)
CMYKcmyk(79.2%, 79.2%, 0%, 71.8%)
CIE-LABlab(8.23, 22.02, -35.28)
CIE-LCHlch(8.23, 41.58, 301.97°)
OKLaboklab(21.81% 0.007 -0.102)
OKLCHoklch(21.81% 0.102 273.9)
XYZxyz(1.5371, 0.9109, 6.2245)
Luminance0.0091 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0F48 #48480F
analogous
#0F2C48 #0F0F48 #2C0F48
triadic
#0F0F48 #480F0F #0F480F
tetradic
#0F0F48 #480F2C #48480F #0F482C
square
#0F0F48 #480F2C #48480F #0F482C
split-complementary
#0F0F48 #482C0F #2C480F
monochromatic
#050519 #050519 #0F0F48 #1A1A7B #2424AD

Accessibility & contrast

On white

17.76
#0F0F48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0F0F48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0F48
17.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0F48#FFFFFF#000000##FFFFFF
##0F0F481.0017.761.1817.76
#FFFFFF17.761.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4A
Deuteranopia (green-blind)
#001547
Tritanopia (blue-blind)
#001F2A
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0f0f48;
/* rgb */ color: rgb(15, 15, 72);
/* oklch */ color: oklch(21.8% 0.102 273.9);
Tailwind
colors: {
  custom: {
    50: '#584d7c',
    500: '#0f0f48',
    950: '#000000',
  },
}
SCSS
$custom: #0f0f48;
$custom-light: #584d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0f48",
  "rgb": {
    "r": 15,
    "g": 15,
    "b": 72
  },
  "hsl": {
    "h": 240,
    "s": 65.517,
    "l": 17.059
  },
  "oklch": {
    "l": 0.21812,
    "c": 0.10224,
    "h": 273.9
  },
  "luminance": 0.00911
}

Semantic roles & 50–950 ramp

primary
#0F0F48
secondary
#828230
accent
#E83FE8
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#040109
muted
#79777B

Preview Lab

Preview with #0F0F48

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

Preview Lab → · Contrast checker → · Palette generator →

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