#0F0F5D#0F0F5D

#0F0F5D is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.4% C 0.132 H 271.1°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#0F0F5D
RGBrgb(15, 15, 93)
HSLhsl(240, 72%, 21%)
HSVhsv(240, 84%, 36%)
CMYKcmyk(83.9%, 83.9%, 0%, 63.5%)
CIE-LABlab(10.80, 29.99, -45.41)
CIE-LCHlch(10.80, 54.43, 303.44°)
OKLaboklab(24.4% 0.0026 -0.1315)
OKLCHoklch(24.4% 0.132 271.1)
XYZxyz(2.3429, 1.2333, 10.4684)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0F5D #5D5D0F
analogous
#0F365D #0F0F5D #360F5D
triadic
#0F0F5D #5D0F0F #0F5D0F
tetradic
#0F0F5D #5D0F36 #5D5D0F #0F5D36
square
#0F0F5D #5D0F36 #5D5D0F #0F5D36
split-complementary
#0F0F5D #5D360F #365D0F
monochromatic
#04041A #060628 #0F0F5D #171792 #2020C6

Accessibility & contrast

On white

16.84
#0F0F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#0F0F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0F5D
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0F5D#FFFFFF#000000##FFFFFF
##0F0F5D1.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215F
Deuteranopia (green-blind)
#00195C
Tritanopia (blue-blind)
#002736
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0f0f5d;
/* rgb */ color: rgb(15, 15, 93);
/* oklch */ color: oklch(24.4% 0.132 271.1);
Tailwind
colors: {
  custom: {
    50: '#5e4f8c',
    500: '#0f0f5d',
    950: '#000000',
  },
}
SCSS
$custom: #0f0f5d;
$custom-light: #5e4f8c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0f5d",
  "rgb": {
    "r": 15,
    "g": 15,
    "b": 93
  },
  "hsl": {
    "h": 240,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.24396,
    "c": 0.13152,
    "h": 271.1
  },
  "luminance": 0.01234
}

Semantic roles & 50–950 ramp

primary
#0F0F5D
secondary
#969631
accent
#EF39EF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#05020C
muted
#7A787D

Preview Lab

Preview with #0F0F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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