#0F0D40#0F0D40

#0F0D40 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.5% C 0.093 H 276.1°. Best body text is #FFFFFF at 18.23:1 contrast (WCAG AA passes).

Color values

HEX#0F0D40
RGBrgb(15, 13, 64)
HSLhsl(242, 66%, 15%)
HSVhsv(242, 80%, 25%)
CMYKcmyk(76.6%, 79.7%, 0%, 74.9%)
CIE-LABlab(6.86, 19.99, -31.87)
CIE-LCHlch(6.86, 37.62, 302.10°)
OKLaboklab(20.51% 0.0099 -0.0923)
OKLCHoklch(20.51% 0.093 276.1)
XYZxyz(1.2660, 0.7595, 4.9294)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0D40 #3E400D
analogous
#0D2440 #0F0D40 #280D40
triadic
#0F0D40 #400F0D #0D400F
tetradic
#0F0D40 #400D24 #3E400D #0D4028
square
#0F0D40 #400D24 #3E400D #0D4028
split-complementary
#0F0D40 #40280D #24400D
monochromatic
#060519 #060519 #0F0D40 #1B1773 #2722A6

Accessibility & contrast

On white

18.23
#0F0D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#0F0D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0D40
18.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0D40#FFFFFF#000000##FFFFFF
##0F0D401.0018.231.1518.23
#FFFFFF18.231.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#001B25
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #0f0d40;
/* rgb */ color: rgb(15, 13, 64);
/* oklch */ color: oklch(20.5% 0.093 276.1);
Tailwind
colors: {
  custom: {
    50: '#564c75',
    500: '#0f0d40',
    950: '#000000',
  },
}
SCSS
$custom: #0f0d40;
$custom-light: #564c75;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0d40",
  "rgb": {
    "r": 15,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 242.353,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.20513,
    "c": 0.09287,
    "h": 276.1
  },
  "luminance": 0.0076
}

Semantic roles & 50–950 ramp

primary
#0F0D40
secondary
#787C2D
accent
#E93FE2
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0F0D40

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

Preview Lab → · Contrast checker → · Palette generator →

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