#0F183A#0F183A

#0F183A is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.3% C 0.067 H 269.2°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#0F183A
RGBrgb(15, 24, 58)
HSLhsl(227, 59%, 14%)
HSVhsv(227, 74%, 23%)
CMYKcmyk(74.1%, 58.6%, 0%, 77.3%)
CIE-LABlab(9.48, 9.34, -23.31)
CIE-LCHlch(9.48, 25.11, 291.83°)
OKLaboklab(22.31% -0.0009 -0.0668)
OKLCHoklch(22.31% 0.067 269.2)
XYZxyz(1.2871, 1.0602, 4.1390)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F183A #3A310F
analogous
#0F2E3A #0F183A #1C0F3A
triadic
#0F183A #3A0F18 #183A0F
tetradic
#0F183A #3A0F2E #3A310F #0F3A1C
square
#0F183A #3A0F2E #3A310F #0F3A1C
split-complementary
#0F183A #3A1C0F #2E3A0F
monochromatic
#060A18 #060A18 #0F183A #1C2C6B #28409B

Accessibility & contrast

On white

17.33
#0F183A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0F183A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F183A
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F183A#FFFFFF#000000##FFFFFF
##0F183A1.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#061C3B
Deuteranopia (green-blind)
#001939
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0f183a;
/* rgb */ color: rgb(15, 24, 58);
/* oklch */ color: oklch(22.3% 0.067 269.2);
Tailwind
colors: {
  custom: {
    50: '#535470',
    500: '#0f183a',
    950: '#000000',
  },
}
SCSS
$custom: #0f183a;
$custom-light: #535470;
$custom-dark: #000000;
JSON
{
  "hex": "#0f183a",
  "rgb": {
    "r": 15,
    "g": 24,
    "b": 58
  },
  "hsl": {
    "h": 227.442,
    "s": 58.904,
    "l": 14.314
  },
  "oklch": {
    "l": 0.22313,
    "c": 0.06683,
    "h": 269.2
  },
  "luminance": 0.0106
}

Semantic roles & 50–950 ramp

primary
#0F183A
secondary
#746630
accent
#C146E2
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #0F183A

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

Preview Lab → · Contrast checker → · Palette generator →

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