#0F1040#0F1040

#0F1040 is a very dark, moderate blue. Relative luminance 0.008; OKLCH L 21.1% C 0.089 H 274.8°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#0F1040
RGBrgb(15, 16, 64)
HSLhsl(239, 62%, 15%)
HSVhsv(239, 77%, 25%)
CMYKcmyk(76.6%, 75%, 0%, 74.9%)
CIE-LABlab(7.61, 18.04, -30.64)
CIE-LCHlch(7.61, 35.56, 300.49°)
OKLaboklab(21.09% 0.0074 -0.0885)
OKLCHoklch(21.09% 0.089 274.8)
XYZxyz(1.3074, 0.8422, 4.9432)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1040 #403F0F
analogous
#0F2840 #0F1040 #260F40
triadic
#0F1040 #400F10 #10400F
tetradic
#0F1040 #400F28 #403F0F #0F4026
square
#0F1040 #400F28 #403F0F #0F4026
split-complementary
#0F1040 #40260F #28400F
monochromatic
#060619 #060619 #0F1040 #1B1C72 #2629A3

Accessibility & contrast

On white

17.97
#0F1040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0F1040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1040
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1040#FFFFFF#000000##FFFFFF
##0F10401.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#001D26
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0f1040;
/* rgb */ color: rgb(15, 16, 64);
/* oklch */ color: oklch(21.1% 0.089 274.8);
Tailwind
colors: {
  custom: {
    50: '#554e75',
    500: '#0f1040',
    950: '#000000',
  },
}
SCSS
$custom: #0f1040;
$custom-light: #554e75;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1040",
  "rgb": {
    "r": 15,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 238.776,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.2109,
    "c": 0.08881,
    "h": 274.8
  },
  "luminance": 0.00842
}

Semantic roles & 50–950 ramp

primary
#0F1040
secondary
#7A7930
accent
#E243E5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030108
muted
#78777B

Preview Lab

Preview with #0F1040

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

Preview Lab → · Contrast checker → · Palette generator →

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