#0F1242#0F1242

#0F1242 is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.7% C 0.089 H 273.5°. Best body text is #FFFFFF at 17.71:1 contrast (WCAG AA passes).

Color values

HEX#0F1242
RGBrgb(15, 18, 66)
HSLhsl(236, 63%, 16%)
HSVhsv(236, 77%, 26%)
CMYKcmyk(77.3%, 72.7%, 0%, 74.1%)
CIE-LABlab(8.37, 17.41, -30.81)
CIE-LCHlch(8.37, 35.39, 299.46°)
OKLaboklab(21.72% 0.0055 -0.0889)
OKLCHoklch(21.72% 0.089 273.5)
XYZxyz(1.3963, 0.9274, 5.2586)
Luminance0.0093 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1242 #423F0F
analogous
#0F2B42 #0F1242 #250F42
triadic
#0F1242 #420F12 #12420F
tetradic
#0F1242 #420F2B #423F0F #0F4225
square
#0F1242 #420F2B #423F0F #0F4225
split-complementary
#0F1242 #42250F #2B420F
monochromatic
#060719 #060719 #0F1242 #1A2074 #262DA6

Accessibility & contrast

On white

17.71
#0F1242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1242
17.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1242#FFFFFF#000000##FFFFFF
##0F12421.0017.711.1917.71
#FFFFFF17.711.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B44
Deuteranopia (green-blind)
#001641
Tritanopia (blue-blind)
#001E28
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0f1242;
/* rgb */ color: rgb(15, 18, 66);
/* oklch */ color: oklch(21.7% 0.089 273.5);
Tailwind
colors: {
  custom: {
    50: '#564f77',
    500: '#0f1242',
    950: '#000000',
  },
}
SCSS
$custom: #0f1242;
$custom-light: #564f77;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1242",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 236.471,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.21716,
    "c": 0.08912,
    "h": 273.5
  },
  "luminance": 0.00928
}

Semantic roles & 50–950 ramp

primary
#0F1242
secondary
#7C7830
accent
#DC42E6
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030209
muted
#78787B

Preview Lab

Preview with #0F1242

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

Preview Lab → · Contrast checker → · Palette generator →

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