#0F1D4E#0F1D4E

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

Color values

HEX#0F1D4E
RGBrgb(15, 29, 78)
HSLhsl(227, 68%, 18%)
HSVhsv(227, 81%, 31%)
CMYKcmyk(80.8%, 62.8%, 0%, 69.4%)
CIE-LABlab(12.80, 14.16, -31.95)
CIE-LCHlch(12.80, 34.95, 293.90°)
OKLaboklab(25.36% -0.0044 -0.0921)
OKLCHoklch(25.36% 0.092 267.3)
XYZxyz(2.0110, 1.5301, 7.3956)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1D4E #4E400F
analogous
#0F3C4E #0F1D4E #200F4E
triadic
#0F1D4E #4E0F1D #1D4E0F
tetradic
#0F1D4E #4E0F3C #4E400F #0F4E20
square
#0F1D4E #4E0F3C #4E400F #0F4E20
split-complementary
#0F1D4E #4E200F #3C4E0F
monochromatic
#050A1A #050A1B #0F1D4E #193081 #2343B5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##0F1D4E#FFFFFF#000000##FFFFFF
##0F1D4E1.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)
#002450
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#002932
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0f1d4e;
/* rgb */ color: rgb(15, 29, 78);
/* oklch */ color: oklch(25.4% 0.092 267.3);
Tailwind
colors: {
  custom: {
    50: '#585880',
    500: '#0f1d4e',
    950: '#000000',
  },
}
SCSS
$custom: #0f1d4e;
$custom-light: #585880;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1d4e",
  "rgb": {
    "r": 15,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 226.667,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25356,
    "c": 0.09225,
    "h": 267.3
  },
  "luminance": 0.0153
}

Semantic roles & 50–950 ramp

primary
#0F1D4E
secondary
#887531
accent
#C43DEB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0F1D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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