#0F1D4B#0F1D4B

#0F1D4B is a dark, moderate blue. Relative luminance 0.015; OKLCH L 25.1% C 0.087 H 267.0°. Best body text is #FFFFFF at 16.18:1 contrast (WCAG AA passes).

Color values

HEX#0F1D4B
RGBrgb(15, 29, 75)
HSLhsl(226, 67%, 18%)
HSVhsv(226, 80%, 29%)
CMYKcmyk(80%, 61.3%, 0%, 70.6%)
CIE-LABlab(12.53, 12.86, -30.32)
CIE-LCHlch(12.53, 32.93, 292.98°)
OKLaboklab(25.07% -0.0045 -0.0873)
OKLCHoklch(25.07% 0.087 267)
XYZxyz(1.9059, 1.4881, 6.8420)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1D4B #4B3D0F
analogous
#0F3B4B #0F1D4B #1F0F4B
triadic
#0F1D4B #4B0F1D #1D4B0F
tetradic
#0F1D4B #4B0F3B #4B3D0F #0F4B1F
square
#0F1D4B #4B0F3B #4B3D0F #0F4B1F
split-complementary
#0F1D4B #4B1F0F #3B4B0F
monochromatic
#050A1A #050A1A #0F1D4B #19317E #2344B1

Accessibility & contrast

On white

16.18
#0F1D4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1D4B
16.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1D4B#FFFFFF#000000##FFFFFF
##0F1D4B1.0016.181.3016.18
#FFFFFF16.181.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234D
Deuteranopia (green-blind)
#001E4A
Tritanopia (blue-blind)
#002830
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #0f1d4b;
/* rgb */ color: rgb(15, 29, 75);
/* oklch */ color: oklch(25.1% 0.087 267.0);
Tailwind
colors: {
  custom: {
    50: '#57587e',
    500: '#0f1d4b',
    950: '#000000',
  },
}
SCSS
$custom: #0f1d4b;
$custom-light: #57587e;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1d4b",
  "rgb": {
    "r": 15,
    "g": 29,
    "b": 75
  },
  "hsl": {
    "h": 226,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25073,
    "c": 0.08747,
    "h": 267
  },
  "luminance": 0.01488
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #0F1D4B

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

Preview Lab → · Contrast checker → · Palette generator →

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