#0F0F5A#0F0F5A

#0F0F5A is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.0% C 0.128 H 271.5°. Best body text is #FFFFFF at 16.99:1 contrast (WCAG AA passes).

Color values

HEX#0F0F5A
RGBrgb(15, 15, 90)
HSLhsl(240, 71%, 21%)
HSVhsv(240, 83%, 35%)
CMYKcmyk(83.3%, 83.3%, 0%, 64.7%)
CIE-LABlab(10.42, 28.90, -44.03)
CIE-LCHlch(10.42, 52.67, 303.28°)
OKLaboklab(24.02% 0.0032 -0.1275)
OKLCHoklch(24.02% 0.128 271.5)
XYZxyz(2.2127, 1.1811, 9.7822)
Luminance0.0118 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0F5A #5A5A0F
analogous
#0F345A #0F0F5A #340F5A
triadic
#0F0F5A #5A0F0F #0F5A0F
tetradic
#0F0F5A #5A0F34 #5A5A0F #0F5A34
square
#0F0F5A #5A0F34 #5A5A0F #0F5A34
split-complementary
#0F0F5A #5A340F #345A0F
monochromatic
#04041A #060626 #0F0F5A #18188E #2020C3

Accessibility & contrast

On white

16.99
#0F0F5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#0F0F5A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0F5A
16.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0F5A#FFFFFF#000000##FFFFFF
##0F0F5A1.0016.991.2416.99
#FFFFFF16.991.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00205C
Deuteranopia (green-blind)
#001859
Tritanopia (blue-blind)
#002634
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #0f0f5a;
/* rgb */ color: rgb(15, 15, 90);
/* oklch */ color: oklch(24.0% 0.128 271.5);
Tailwind
colors: {
  custom: {
    50: '#5d4f8a',
    500: '#0f0f5a',
    950: '#000000',
  },
}
SCSS
$custom: #0f0f5a;
$custom-light: #5d4f8a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0f5a",
  "rgb": {
    "r": 15,
    "g": 15,
    "b": 90
  },
  "hsl": {
    "h": 240,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.24016,
    "c": 0.12751,
    "h": 271.5
  },
  "luminance": 0.01181
}

Semantic roles & 50–950 ramp

primary
#0F0F5A
secondary
#949431
accent
#EE3AEE
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #0F0F5A

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

Preview Lab → · Contrast checker → · Palette generator →

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