#0F183B#0F183B

#0F183B is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.4% C 0.069 H 269.3°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#0F183B
RGBrgb(15, 24, 59)
HSLhsl(228, 59%, 15%)
HSVhsv(228, 75%, 23%)
CMYKcmyk(74.6%, 59.3%, 0%, 76.9%)
CIE-LABlab(9.57, 9.77, -23.89)
CIE-LCHlch(9.57, 25.81, 292.24°)
OKLaboklab(22.4% -0.0008 -0.0685)
OKLCHoklch(22.4% 0.069 269.3)
XYZxyz(1.3128, 1.0705, 4.2743)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F183B #3B320F
analogous
#0F2E3B #0F183B #1C0F3B
triadic
#0F183B #3B0F18 #183B0F
tetradic
#0F183B #3B0F2E #3B320F #0F3B1C
square
#0F183B #3B0F2E #3B320F #0F3B1C
split-complementary
#0F183B #3B1C0F #2E3B0F
monochromatic
#060A18 #060A18 #0F183B #1B2C6C #28409D

Accessibility & contrast

On white

17.30
#0F183B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F183B
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F183B#FFFFFF#000000##FFFFFF
##0F183B1.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051D3C
Deuteranopia (green-blind)
#00193A
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0f183b;
/* rgb */ color: rgb(15, 24, 59);
/* oklch */ color: oklch(22.4% 0.069 269.3);
Tailwind
colors: {
  custom: {
    50: '#535471',
    500: '#0f183b',
    950: '#000000',
  },
}
SCSS
$custom: #0f183b;
$custom-light: #535471;
$custom-dark: #000000;
JSON
{
  "hex": "#0f183b",
  "rgb": {
    "r": 15,
    "g": 24,
    "b": 59
  },
  "hsl": {
    "h": 227.727,
    "s": 59.459,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22402,
    "c": 0.06854,
    "h": 269.3
  },
  "luminance": 0.01071
}

Semantic roles & 50–950 ramp

primary
#0F183B
secondary
#756730
accent
#C245E3
background
#F4F4F6
surface
#E8E7EC
border
#C4C3C7
text
#030207
muted
#78787A

Preview Lab

Preview with #0F183B

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

Preview Lab → · Contrast checker → · Palette generator →

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