#0F183E#0F183E

#0F183E is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.7% C 0.074 H 269.6°. Best body text is #FFFFFF at 17.20:1 contrast (WCAG AA passes).

Color values

HEX#0F183E
RGBrgb(15, 24, 62)
HSLhsl(229, 61%, 15%)
HSVhsv(229, 76%, 24%)
CMYKcmyk(75.8%, 61.3%, 0%, 75.7%)
CIE-LABlab(9.82, 11.07, -25.62)
CIE-LCHlch(9.82, 27.91, 293.37°)
OKLaboklab(22.67% -0.0005 -0.0736)
OKLCHoklch(22.67% 0.074 269.6)
XYZxyz(1.3928, 1.1025, 4.6959)
Luminance0.0110 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F183E #3E350F
analogous
#0F2F3E #0F183E #1E0F3E
triadic
#0F183E #3E0F18 #183E0F
tetradic
#0F183E #3E0F2F #3E350F #0F3E1E
square
#0F183E #3E0F2F #3E350F #0F3E1E
split-complementary
#0F183E #3E1E0F #2F3E0F
monochromatic
#060A19 #060A19 #0F183E #1B2B6F #273EA1

Accessibility & contrast

On white

17.20
#0F183E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F183E
17.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F183E#FFFFFF#000000##FFFFFF
##0F183E1.0017.201.2217.20
#FFFFFF17.201.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021D3F
Deuteranopia (green-blind)
#00193D
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0f183e;
/* rgb */ color: rgb(15, 24, 62);
/* oklch */ color: oklch(22.7% 0.074 269.6);
Tailwind
colors: {
  custom: {
    50: '#545474',
    500: '#0f183e',
    950: '#000000',
  },
}
SCSS
$custom: #0f183e;
$custom-light: #545474;
$custom-dark: #000000;
JSON
{
  "hex": "#0f183e",
  "rgb": {
    "r": 15,
    "g": 24,
    "b": 62
  },
  "hsl": {
    "h": 228.511,
    "s": 61.039,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22673,
    "c": 0.07363,
    "h": 269.6
  },
  "luminance": 0.01103
}

Semantic roles & 50–950 ramp

primary
#0F183E
secondary
#786B30
accent
#C544E4
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0F183E

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

Preview Lab → · Contrast checker → · Palette generator →

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