#0F1042#0F1042

#0F1042 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.3% C 0.092 H 274.5°. Best body text is #FFFFFF at 17.90:1 contrast (WCAG AA passes).

Color values

HEX#0F1042
RGBrgb(15, 16, 66)
HSLhsl(239, 63%, 16%)
HSVhsv(239, 77%, 26%)
CMYKcmyk(77.3%, 75.8%, 0%, 74.1%)
CIE-LABlab(7.82, 18.88, -31.72)
CIE-LCHlch(7.82, 36.92, 300.77°)
OKLaboklab(21.31% 0.0072 -0.0916)
OKLCHoklch(21.31% 0.092 274.5)
XYZxyz(1.3653, 0.8654, 5.2483)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1042 #42410F
analogous
#0F2942 #0F1042 #270F42
triadic
#0F1042 #420F10 #10420F
tetradic
#0F1042 #420F29 #42410F #0F4227
square
#0F1042 #420F29 #42410F #0F4227
split-complementary
#0F1042 #42270F #29420F
monochromatic
#060619 #060619 #0F1042 #1A1C74 #2628A6

Accessibility & contrast

On white

17.90
#0F1042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1042
17.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1042#FFFFFF#000000##FFFFFF
##0F10421.0017.901.1717.90
#FFFFFF17.901.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A44
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#001D27
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0f1042;
/* rgb */ color: rgb(15, 16, 66);
/* oklch */ color: oklch(21.3% 0.092 274.5);
Tailwind
colors: {
  custom: {
    50: '#564e77',
    500: '#0f1042',
    950: '#000000',
  },
}
SCSS
$custom: #0f1042;
$custom-light: #564e77;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1042",
  "rgb": {
    "r": 15,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 238.824,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21312,
    "c": 0.09191,
    "h": 274.5
  },
  "luminance": 0.00865
}

Semantic roles & 50–950 ramp

primary
#0F1042
secondary
#7C7B30
accent
#E342E6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0F1042

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

Preview Lab → · Contrast checker → · Palette generator →

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