#0F183C#0F183C

#0F183C is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.5% C 0.070 H 269.4°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#0F183C
RGBrgb(15, 24, 60)
HSLhsl(228, 60%, 15%)
HSVhsv(228, 75%, 24%)
CMYKcmyk(75%, 60%, 0%, 76.5%)
CIE-LABlab(9.65, 10.21, -24.47)
CIE-LCHlch(9.65, 26.52, 292.64°)
OKLaboklab(22.49% -0.0007 -0.0702)
OKLCHoklch(22.49% 0.07 269.4)
XYZxyz(1.3390, 1.0809, 4.4122)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F183C #3C330F
analogous
#0F2F3C #0F183C #1D0F3C
triadic
#0F183C #3C0F18 #183C0F
tetradic
#0F183C #3C0F2F #3C330F #0F3C1D
square
#0F183C #3C0F2F #3C330F #0F3C1D
split-complementary
#0F183C #3C1D0F #2F3C0F
monochromatic
#060A18 #060A18 #0F183C #1B2C6D #273F9E

Accessibility & contrast

On white

17.27
#0F183C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#0F183C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F183C
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F183C#FFFFFF#000000##FFFFFF
##0F183C1.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041D3D
Deuteranopia (green-blind)
#00193B
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0f183c;
/* rgb */ color: rgb(15, 24, 60);
/* oklch */ color: oklch(22.5% 0.070 269.4);
Tailwind
colors: {
  custom: {
    50: '#545472',
    500: '#0f183c',
    950: '#000000',
  },
}
SCSS
$custom: #0f183c;
$custom-light: #545472;
$custom-dark: #000000;
JSON
{
  "hex": "#0f183c",
  "rgb": {
    "r": 15,
    "g": 24,
    "b": 60
  },
  "hsl": {
    "h": 228,
    "s": 60,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22491,
    "c": 0.07024,
    "h": 269.4
  },
  "luminance": 0.01081
}

Semantic roles & 50–950 ramp

primary
#0F183C
secondary
#766830
accent
#C345E3
background
#F5F4F6
surface
#E8E7EC
border
#C4C3C7
text
#030208
muted
#78787B

Preview Lab

Preview with #0F183C

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

Preview Lab → · Contrast checker → · Palette generator →

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