#0F1D5C#0F1D5C

#0F1D5C is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.8% C 0.114 H 267.8°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#0F1D5C
RGBrgb(15, 29, 92)
HSLhsl(229, 72%, 21%)
HSVhsv(229, 84%, 36%)
CMYKcmyk(83.7%, 68.5%, 0%, 63.9%)
CIE-LABlab(14.13, 20.14, -39.25)
CIE-LCHlch(14.13, 44.12, 297.17°)
OKLaboklab(26.76% -0.0043 -0.1136)
OKLCHoklch(26.76% 0.114 267.8)
XYZxyz(2.5675, 1.7527, 10.3261)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1D5C #5C4E0F
analogous
#0F435C #0F1D5C #270F5C
triadic
#0F1D5C #5C0F1D #1D5C0F
tetradic
#0F1D5C #5C0F43 #5C4E0F #0F5C27
square
#0F1D5C #5C0F43 #5C4E0F #0F5C27
split-complementary
#0F1D5C #5C270F #435C0F
monochromatic
#04081A #060C27 #0F1D5C #182E91 #203EC5

Accessibility & contrast

On white

15.55
#0F1D5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0F1D5C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1D5C
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1D5C#FFFFFF#000000##FFFFFF
##0F1D5C1.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#002E39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0f1d5c;
/* rgb */ color: rgb(15, 29, 92);
/* oklch */ color: oklch(26.8% 0.114 267.8);
Tailwind
colors: {
  custom: {
    50: '#5c588b',
    500: '#0f1d5c',
    950: '#000000',
  },
}
SCSS
$custom: #0f1d5c;
$custom-light: #5c588b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1d5c",
  "rgb": {
    "r": 15,
    "g": 29,
    "b": 92
  },
  "hsl": {
    "h": 229.091,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26761,
    "c": 0.11365,
    "h": 267.8
  },
  "luminance": 0.01753
}

Semantic roles & 50–950 ramp

primary
#0F1D5C
secondary
#958331
accent
#CE39EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F1D5C

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

Preview Lab → · Contrast checker → · Palette generator →

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