#0F1342#0F1342

#0F1342 is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.9% C 0.088 H 273.0°. Best body text is #FFFFFF at 17.61:1 contrast (WCAG AA passes).

Color values

HEX#0F1342
RGBrgb(15, 19, 66)
HSLhsl(235, 63%, 16%)
HSVhsv(235, 77%, 26%)
CMYKcmyk(77.3%, 71.2%, 0%, 74.1%)
CIE-LABlab(8.66, 16.66, -30.35)
CIE-LCHlch(8.66, 34.62, 298.76°)
OKLaboklab(21.93% 0.0046 -0.0876)
OKLCHoklch(21.93% 0.088 273)
XYZxyz(1.4129, 0.9605, 5.2641)
Luminance0.0096 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1342 #423E0F
analogous
#0F2C42 #0F1342 #240F42
triadic
#0F1342 #420F13 #13420F
tetradic
#0F1342 #420F2C #423E0F #0F4224
square
#0F1342 #420F2C #423E0F #0F4224
split-complementary
#0F1342 #42240F #2C420F
monochromatic
#060719 #060719 #0F1342 #1A2174 #2630A6

Accessibility & contrast

On white

17.61
#0F1342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1342
17.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1342#FFFFFF#000000##FFFFFF
##0F13421.0017.611.1917.61
#FFFFFF17.611.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#001741
Tritanopia (blue-blind)
#001F28
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #0f1342;
/* rgb */ color: rgb(15, 19, 66);
/* oklch */ color: oklch(21.9% 0.088 273.0);
Tailwind
colors: {
  custom: {
    50: '#565077',
    500: '#0f1342',
    950: '#000000',
  },
}
SCSS
$custom: #0f1342;
$custom-light: #565077;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1342",
  "rgb": {
    "r": 15,
    "g": 19,
    "b": 66
  },
  "hsl": {
    "h": 235.294,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21927,
    "c": 0.08769,
    "h": 273
  },
  "luminance": 0.00961
}

Semantic roles & 50–950 ramp

primary
#0F1342
secondary
#7C7730
accent
#D942E6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0F1342

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

Preview Lab → · Contrast checker → · Palette generator →

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