#0F185C#0F185C

#0F185C is a dark, vivid blue. Relative luminance 0.015; OKLCH L 25.8% C 0.120 H 269.4°. Best body text is #FFFFFF at 16.08:1 contrast (WCAG AA passes).

Color values

HEX#0F185C
RGBrgb(15, 24, 92)
HSLhsl(233, 72%, 21%)
HSVhsv(233, 84%, 36%)
CMYKcmyk(83.7%, 73.9%, 0%, 63.9%)
CIE-LABlab(12.78, 23.74, -41.47)
CIE-LCHlch(12.78, 47.79, 299.79°)
OKLaboklab(25.77% -0.0013 -0.1201)
OKLCHoklch(25.77% 0.12 269.4)
XYZxyz(2.4547, 1.5273, 10.2886)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F185C #5C530F
analogous
#0F3E5C #0F185C #2C0F5C
triadic
#0F185C #5C0F18 #185C0F
tetradic
#0F185C #5C0F3E #5C530F #0F5C2C
square
#0F185C #5C0F3E #5C530F #0F5C2C
split-complementary
#0F185C #5C2C0F #3E5C0F
monochromatic
#04071A #060A27 #0F185C #182691 #2033C5

Accessibility & contrast

On white

16.08
#0F185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#0F185C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F185C
16.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F185C#FFFFFF#000000##FFFFFF
##0F185C1.0016.081.3116.08
#FFFFFF16.081.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#001D5B
Tritanopia (blue-blind)
#002B37
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0f185c;
/* rgb */ color: rgb(15, 24, 92);
/* oklch */ color: oklch(25.8% 0.120 269.4);
Tailwind
colors: {
  custom: {
    50: '#5d558b',
    500: '#0f185c',
    950: '#000000',
  },
}
SCSS
$custom: #0f185c;
$custom-light: #5d558b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f185c",
  "rgb": {
    "r": 15,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 232.987,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.25773,
    "c": 0.1201,
    "h": 269.4
  },
  "luminance": 0.01528
}

Semantic roles & 50–950 ramp

primary
#0F185C
secondary
#958A31
accent
#D939EF
background
#F5F4F8
surface
#EAE7F0
border
#C6C3CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F185C

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

Preview Lab → · Contrast checker → · Palette generator →

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