#0F1142#0F1142

#0F1142 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.5% C 0.091 H 274.0°. Best body text is #FFFFFF at 17.81:1 contrast (WCAG AA passes).

Color values

HEX#0F1142
RGBrgb(15, 17, 66)
HSLhsl(238, 63%, 16%)
HSVhsv(238, 77%, 26%)
CMYKcmyk(77.3%, 74.2%, 0%, 74.1%)
CIE-LABlab(8.09, 18.16, -31.27)
CIE-LCHlch(8.09, 36.16, 300.14°)
OKLaboklab(21.51% 0.0063 -0.0903)
OKLCHoklch(21.51% 0.091 274)
XYZxyz(1.3805, 0.8957, 5.2533)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1142 #42400F
analogous
#0F2A42 #0F1142 #260F42
triadic
#0F1142 #420F11 #11420F
tetradic
#0F1142 #420F2A #42400F #0F4226
square
#0F1142 #420F2A #42400F #0F4226
split-complementary
#0F1142 #42260F #2A420F
monochromatic
#060619 #060619 #0F1142 #1A1E74 #262BA6

Accessibility & contrast

On white

17.81
#0F1142 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0F1142 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1142
17.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1142#FFFFFF#000000##FFFFFF
##0F11421.0017.811.1817.81
#FFFFFF17.811.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f1142;
/* rgb */ color: rgb(15, 17, 66);
/* oklch */ color: oklch(21.5% 0.091 274.0);
Tailwind
colors: {
  custom: {
    50: '#564f77',
    500: '#0f1142',
    950: '#000000',
  },
}
SCSS
$custom: #0f1142;
$custom-light: #564f77;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1142",
  "rgb": {
    "r": 15,
    "g": 17,
    "b": 66
  },
  "hsl": {
    "h": 237.647,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21511,
    "c": 0.09053,
    "h": 274
  },
  "luminance": 0.00896
}

Semantic roles & 50–950 ramp

primary
#0F1142
secondary
#7C7930
accent
#E042E6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030109
muted
#78777B

Preview Lab

Preview with #0F1142

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

Preview Lab → · Contrast checker → · Palette generator →

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