#0F0F5C#0F0F5C

#0F0F5C is a very dark, vivid blue. Relative luminance 0.012; OKLCH L 24.3% C 0.130 H 271.2°. Best body text is #FFFFFF at 16.89:1 contrast (WCAG AA passes).

Color values

HEX#0F0F5C
RGBrgb(15, 15, 92)
HSLhsl(240, 72%, 21%)
HSVhsv(240, 84%, 36%)
CMYKcmyk(83.7%, 83.7%, 0%, 63.9%)
CIE-LABlab(10.67, 29.63, -44.95)
CIE-LCHlch(10.67, 53.84, 303.39°)
OKLaboklab(24.27% 0.0028 -0.1301)
OKLCHoklch(24.27% 0.13 271.2)
XYZxyz(2.2989, 1.2157, 10.2366)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0F5C #5C5C0F
analogous
#0F355C #0F0F5C #350F5C
triadic
#0F0F5C #5C0F0F #0F5C0F
tetradic
#0F0F5C #5C0F35 #5C5C0F #0F5C35
square
#0F0F5C #5C0F35 #5C5C0F #0F5C35
split-complementary
#0F0F5C #5C350F #355C0F
monochromatic
#04041A #060627 #0F0F5C #181891 #2020C5

Accessibility & contrast

On white

16.89
#0F0F5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F0F5C
16.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0F5C#FFFFFF#000000##FFFFFF
##0F0F5C1.0016.891.2416.89
#FFFFFF16.891.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00215E
Deuteranopia (green-blind)
#00195B
Tritanopia (blue-blind)
#002735
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0f0f5c;
/* rgb */ color: rgb(15, 15, 92);
/* oklch */ color: oklch(24.3% 0.130 271.2);
Tailwind
colors: {
  custom: {
    50: '#5e4f8b',
    500: '#0f0f5c',
    950: '#000000',
  },
}
SCSS
$custom: #0f0f5c;
$custom-light: #5e4f8b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0f5c",
  "rgb": {
    "r": 15,
    "g": 15,
    "b": 92
  },
  "hsl": {
    "h": 240,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.24269,
    "c": 0.13018,
    "h": 271.2
  },
  "luminance": 0.01216
}

Semantic roles & 50–950 ramp

primary
#0F0F5C
secondary
#959531
accent
#EF39EF
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05020C
muted
#79787D

Preview Lab

Preview with #0F0F5C

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

Preview Lab → · Contrast checker → · Palette generator →

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