#0F1D4C#0F1D4C

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

Color values

HEX#0F1D4C
RGBrgb(15, 29, 76)
HSLhsl(226, 67%, 18%)
HSVhsv(226, 80%, 30%)
CMYKcmyk(80.3%, 61.8%, 0%, 70.2%)
CIE-LABlab(12.62, 13.29, -30.87)
CIE-LCHlch(12.62, 33.61, 293.30°)
OKLaboklab(25.17% -0.0045 -0.089)
OKLCHoklch(25.17% 0.089 267.1)
XYZxyz(1.9404, 1.5019, 7.0237)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1D4C #4C3E0F
analogous
#0F3B4C #0F1D4C #200F4C
triadic
#0F1D4C #4C0F1D #1D4C0F
tetradic
#0F1D4C #4C0F3B #4C3E0F #0F4C20
square
#0F1D4C #4C0F3B #4C3E0F #0F4C20
split-complementary
#0F1D4C #4C200F #3B4C0F
monochromatic
#050A1A #050A1A #0F1D4C #19317F #2344B2

Accessibility & contrast

On white

16.15
#0F1D4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1D4C
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1D4C#FFFFFF#000000##FFFFFF
##0F1D4C1.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#001E4B
Tritanopia (blue-blind)
#002931
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0f1d4c;
/* rgb */ color: rgb(15, 29, 76);
/* oklch */ color: oklch(25.2% 0.089 267.1);
Tailwind
colors: {
  custom: {
    50: '#58587e',
    500: '#0f1d4c',
    950: '#000000',
  },
}
SCSS
$custom: #0f1d4c;
$custom-light: #58587e;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1d4c",
  "rgb": {
    "r": 15,
    "g": 29,
    "b": 76
  },
  "hsl": {
    "h": 226.23,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.25167,
    "c": 0.08907,
    "h": 267.1
  },
  "luminance": 0.01502
}

Semantic roles & 50–950 ramp

primary
#0F1D4C
secondary
#867331
accent
#C23EEA
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0F1D4C

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

Preview Lab → · Contrast checker → · Palette generator →

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