#0F1A42#0F1A42

#0F1A42 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 23.5% C 0.077 H 268.3°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#0F1A42
RGBrgb(15, 26, 66)
HSLhsl(227, 63%, 16%)
HSVhsv(227, 77%, 26%)
CMYKcmyk(77.3%, 60.6%, 0%, 74.1%)
CIE-LABlab(10.80, 11.25, -26.86)
CIE-LCHlch(10.80, 29.12, 292.73°)
OKLaboklab(23.52% -0.0023 -0.0772)
OKLCHoklch(23.52% 0.077 268.3)
XYZxyz(1.5494, 1.2335, 5.3096)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1A42 #42370F
analogous
#0F3342 #0F1A42 #1D0F42
triadic
#0F1A42 #420F1A #1A420F
tetradic
#0F1A42 #420F33 #42370F #0F421D
square
#0F1A42 #420F33 #42370F #0F421D
split-complementary
#0F1A42 #421D0F #33420F
monochromatic
#060A19 #060A19 #0F1A42 #1A2E74 #2641A6

Accessibility & contrast

On white

16.84
#0F1A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#0F1A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1A42
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1A42#FFFFFF#000000##FFFFFF
##0F1A421.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#012043
Deuteranopia (green-blind)
#001B41
Tritanopia (blue-blind)
#00242B
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0f1a42;
/* rgb */ color: rgb(15, 26, 66);
/* oklch */ color: oklch(23.5% 0.077 268.3);
Tailwind
colors: {
  custom: {
    50: '#555677',
    500: '#0f1a42',
    950: '#000000',
  },
}
SCSS
$custom: #0f1a42;
$custom-light: #555677;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1a42",
  "rgb": {
    "r": 15,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 227.059,
    "s": 62.963,
    "l": 15.882
  },
  "oklch": {
    "l": 0.23524,
    "c": 0.07725,
    "h": 268.3
  },
  "luminance": 0.01234
}

Semantic roles & 50–950 ramp

primary
#0F1A42
secondary
#7C6C30
accent
#C342E6
background
#F5F5F7
surface
#E9E8ED
border
#C5C4C8
text
#030308
muted
#78787B

Preview Lab

Preview with #0F1A42

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

Preview Lab → · Contrast checker → · Palette generator →

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