#0F1C4D#0F1C4D

#0F1C4D is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.0% C 0.092 H 267.8°. Best body text is #FFFFFF at 16.23:1 contrast (WCAG AA passes).

Color values

HEX#0F1C4D
RGBrgb(15, 28, 77)
HSLhsl(227, 67%, 18%)
HSVhsv(227, 81%, 30%)
CMYKcmyk(80.5%, 63.6%, 0%, 69.8%)
CIE-LABlab(12.40, 14.49, -31.91)
CIE-LCHlch(12.40, 35.05, 294.42°)
OKLaboklab(25.03% -0.0035 -0.092)
OKLCHoklch(25.03% 0.092 267.8)
XYZxyz(1.9513, 1.4677, 7.2002)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1C4D #4D400F
analogous
#0F3B4D #0F1C4D #210F4D
triadic
#0F1C4D #4D0F1C #1C4D0F
tetradic
#0F1C4D #4D0F3B #4D400F #0F4D21
square
#0F1C4D #4D0F3B #4D400F #0F4D21
split-complementary
#0F1C4D #4D210F #3B4D0F
monochromatic
#05091A #05091A #0F1C4D #192F80 #2341B3

Accessibility & contrast

On white

16.23
#0F1C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#0F1C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1C4D
16.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1C4D#FFFFFF#000000##FFFFFF
##0F1C4D1.0016.231.2916.23
#FFFFFF16.231.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234F
Deuteranopia (green-blind)
#001E4C
Tritanopia (blue-blind)
#002831
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #0f1c4d;
/* rgb */ color: rgb(15, 28, 77);
/* oklch */ color: oklch(25.0% 0.092 267.8);
Tailwind
colors: {
  custom: {
    50: '#58577f',
    500: '#0f1c4d',
    950: '#000000',
  },
}
SCSS
$custom: #0f1c4d;
$custom-light: #58577f;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1c4d",
  "rgb": {
    "r": 15,
    "g": 28,
    "b": 77
  },
  "hsl": {
    "h": 227.419,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25031,
    "c": 0.09211,
    "h": 267.8
  },
  "luminance": 0.01468
}

Semantic roles & 50–950 ramp

primary
#0F1C4D
secondary
#877531
accent
#C63EEA
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0F1C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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