#0F183F#0F183F

#0F183F is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.8% C 0.075 H 269.7°. Best body text is #FFFFFF at 17.17:1 contrast (WCAG AA passes).

Color values

HEX#0F183F
RGBrgb(15, 24, 63)
HSLhsl(229, 62%, 15%)
HSVhsv(229, 76%, 25%)
CMYKcmyk(76.2%, 61.9%, 0%, 75.3%)
CIE-LABlab(9.90, 11.51, -26.19)
CIE-LCHlch(9.90, 28.61, 293.71°)
OKLaboklab(22.77% -0.0004 -0.0753)
OKLCHoklch(22.77% 0.075 269.7)
XYZxyz(1.4205, 1.1136, 4.8417)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F183F #3F360F
analogous
#0F303F #0F183F #1E0F3F
triadic
#0F183F #3F0F18 #183F0F
tetradic
#0F183F #3F0F30 #3F360F #0F3F1E
square
#0F183F #3F0F30 #3F360F #0F3F1E
split-complementary
#0F183F #3F1E0F #303F0F
monochromatic
#060919 #060919 #0F183F #1B2B70 #273EA2

Accessibility & contrast

On white

17.17
#0F183F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F183F
17.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F183F#FFFFFF#000000##FFFFFF
##0F183F1.0017.171.2217.17
#FFFFFF17.171.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011E40
Deuteranopia (green-blind)
#00193E
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0f183f;
/* rgb */ color: rgb(15, 24, 63);
/* oklch */ color: oklch(22.8% 0.075 269.7);
Tailwind
colors: {
  custom: {
    50: '#545474',
    500: '#0f183f',
    950: '#000000',
  },
}
SCSS
$custom: #0f183f;
$custom-light: #545474;
$custom-dark: #000000;
JSON
{
  "hex": "#0f183f",
  "rgb": {
    "r": 15,
    "g": 24,
    "b": 63
  },
  "hsl": {
    "h": 228.75,
    "s": 61.538,
    "l": 15.294
  },
  "oklch": {
    "l": 0.22765,
    "c": 0.0753,
    "h": 269.7
  },
  "luminance": 0.01114
}

Semantic roles & 50–950 ramp

primary
#0F183F
secondary
#796C30
accent
#C643E5
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #0F183F

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

Preview Lab → · Contrast checker → · Palette generator →

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