#0F0D4F#0F0D4F

#0F0D4F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.3% C 0.115 H 273.3°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#0F0D4F
RGBrgb(15, 13, 79)
HSLhsl(242, 72%, 18%)
HSVhsv(242, 84%, 31%)
CMYKcmyk(81%, 83.5%, 0%, 69%)
CIE-LABlab(8.60, 26.04, -39.53)
CIE-LCHlch(8.60, 47.33, 303.38°)
OKLaboklab(22.33% 0.0067 -0.1144)
OKLCHoklch(22.33% 0.115 273.3)
XYZxyz(1.7517, 0.9537, 7.4874)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0D4F #4D4F0D
analogous
#0D2C4F #0F0D4F #300D4F
triadic
#0F0D4F #4F0F0D #0D4F0F
tetradic
#0F0D4F #4F0D2C #4D4F0D #0D4F30
square
#0F0D4F #4F0D2C #4D4F0D #0D4F30
split-complementary
#0F0D4F #4F300D #2C4F0D
monochromatic
#05041A #05041A #0F0D4F #191684 #231EB8

Accessibility & contrast

On white

17.64
#0F0D4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#0F0D4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0D4F
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0D4F#FFFFFF#000000##FFFFFF
##0F0D4F1.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C51
Deuteranopia (green-blind)
#00154E
Tritanopia (blue-blind)
#00212D
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0f0d4f;
/* rgb */ color: rgb(15, 13, 79);
/* oklch */ color: oklch(22.3% 0.115 273.3);
Tailwind
colors: {
  custom: {
    50: '#5a4d81',
    500: '#0f0d4f',
    950: '#000000',
  },
}
SCSS
$custom: #0f0d4f;
$custom-light: #5a4d81;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0d4f",
  "rgb": {
    "r": 15,
    "g": 13,
    "b": 79
  },
  "hsl": {
    "h": 241.818,
    "s": 71.739,
    "l": 18.039
  },
  "oklch": {
    "l": 0.22329,
    "c": 0.11455,
    "h": 273.3
  },
  "luminance": 0.00954
}

Semantic roles & 50–950 ramp

primary
#0F0D4F
secondary
#878A2E
accent
#EE39E9
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#04010A
muted
#79777C

Preview Lab

Preview with #0F0D4F

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

Preview Lab → · Contrast checker → · Palette generator →

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