#0F1C4F#0F1C4F

#0F1C4F is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.2% C 0.095 H 267.9°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#0F1C4F
RGBrgb(15, 28, 79)
HSLhsl(228, 68%, 18%)
HSVhsv(228, 81%, 31%)
CMYKcmyk(81%, 64.6%, 0%, 69%)
CIE-LABlab(12.59, 15.35, -32.98)
CIE-LCHlch(12.59, 36.38, 294.96°)
OKLaboklab(25.23% -0.0035 -0.0952)
OKLCHoklch(25.23% 0.095 267.9)
XYZxyz(2.0230, 1.4964, 7.5778)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1C4F #4F420F
analogous
#0F3C4F #0F1C4F #220F4F
triadic
#0F1C4F #4F0F1C #1C4F0F
tetradic
#0F1C4F #4F0F3C #4F420F #0F4F22
square
#0F1C4F #4F0F3C #4F420F #0F4F22
split-complementary
#0F1C4F #4F220F #3C4F0F
monochromatic
#05091A #050A1C #0F1C4F #192E82 #2340B6

Accessibility & contrast

On white

16.16
#0F1C4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#0F1C4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1C4F
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1C4F#FFFFFF#000000##FFFFFF
##0F1C4F1.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002451
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#002932
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0f1c4f;
/* rgb */ color: rgb(15, 28, 79);
/* oklch */ color: oklch(25.2% 0.095 267.9);
Tailwind
colors: {
  custom: {
    50: '#595781',
    500: '#0f1c4f',
    950: '#000000',
  },
}
SCSS
$custom: #0f1c4f;
$custom-light: #595781;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1c4f",
  "rgb": {
    "r": 15,
    "g": 28,
    "b": 79
  },
  "hsl": {
    "h": 227.813,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25225,
    "c": 0.09526,
    "h": 267.9
  },
  "luminance": 0.01497
}

Semantic roles & 50–950 ramp

primary
#0F1C4F
secondary
#897731
accent
#C83DEB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0F1C4F

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

Preview Lab → · Contrast checker → · Palette generator →

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