#0F0F40#0F0F40

#0F0F40 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 20.9% C 0.090 H 275.3°. Best body text is #FFFFFF at 18.06:1 contrast (WCAG AA passes).

Color values

HEX#0F0F40
RGBrgb(15, 15, 64)
HSLhsl(240, 62%, 15%)
HSVhsv(240, 77%, 25%)
CMYKcmyk(76.6%, 76.6%, 0%, 74.9%)
CIE-LABlab(7.35, 18.73, -31.07)
CIE-LCHlch(7.35, 36.28, 301.07°)
OKLaboklab(20.89% 0.0083 -0.0898)
OKLCHoklch(20.89% 0.09 275.3)
XYZxyz(1.2929, 0.8133, 4.9383)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F0F40 #40400F
analogous
#0F2740 #0F0F40 #270F40
triadic
#0F0F40 #400F0F #0F400F
tetradic
#0F0F40 #400F27 #40400F #0F4027
square
#0F0F40 #400F27 #40400F #0F4027
split-complementary
#0F0F40 #40270F #27400F
monochromatic
#060619 #060619 #0F0F40 #1B1B72 #2626A3

Accessibility & contrast

On white

18.06
#0F0F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#0F0F40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F0F40
18.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F0F40#FFFFFF#000000##FFFFFF
##0F0F401.0018.061.1618.06
#FFFFFF18.061.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00143F
Tritanopia (blue-blind)
#001C25
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #0f0f40;
/* rgb */ color: rgb(15, 15, 64);
/* oklch */ color: oklch(20.9% 0.090 275.3);
Tailwind
colors: {
  custom: {
    50: '#564d75',
    500: '#0f0f40',
    950: '#000000',
  },
}
SCSS
$custom: #0f0f40;
$custom-light: #564d75;
$custom-dark: #000000;
JSON
{
  "hex": "#0f0f40",
  "rgb": {
    "r": 15,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 240,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.20892,
    "c": 0.09019,
    "h": 275.3
  },
  "luminance": 0.00813
}

Semantic roles & 50–950 ramp

primary
#0F0F40
secondary
#7A7A30
accent
#E543E5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0F0F40

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

Preview Lab → · Contrast checker → · Palette generator →

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