#0F1D5F#0F1D5F

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

Color values

HEX#0F1D5F
RGBrgb(15, 29, 95)
HSLhsl(230, 73%, 22%)
HSVhsv(230, 84%, 37%)
CMYKcmyk(84.2%, 69.5%, 0%, 62.7%)
CIE-LABlab(14.44, 21.40, -40.76)
CIE-LCHlch(14.44, 46.03, 297.70°)
OKLaboklab(27.08% -0.0045 -0.118)
OKLCHoklch(27.08% 0.118 267.8)
XYZxyz(2.7012, 1.8062, 11.0305)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1D5F #5F510F
analogous
#0F455F #0F1D5F #290F5F
triadic
#0F1D5F #5F0F1D #1D5F0F
tetradic
#0F1D5F #5F0F45 #5F510F #0F5F29
square
#0F1D5F #5F0F45 #5F510F #0F5F29
split-complementary
#0F1D5F #5F290F #455F0F
monochromatic
#04081A #070D2A #0F1D5F #172D94 #203DC9

Accessibility & contrast

On white

15.43
#0F1D5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#0F1D5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1D5F
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1D5F#FFFFFF#000000##FFFFFF
##0F1D5F1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0f1d5f;
/* rgb */ color: rgb(15, 29, 95);
/* oklch */ color: oklch(27.1% 0.118 267.8);
Tailwind
colors: {
  custom: {
    50: '#5d588d',
    500: '#0f1d5f',
    950: '#000000',
  },
}
SCSS
$custom: #0f1d5f;
$custom-light: #5d588d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1d5f",
  "rgb": {
    "r": 15,
    "g": 29,
    "b": 95
  },
  "hsl": {
    "h": 229.5,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27077,
    "c": 0.11806,
    "h": 267.8
  },
  "luminance": 0.01807
}

Semantic roles & 50–950 ramp

primary
#0F1D5F
secondary
#988632
accent
#CF38EF
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F1D5F

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

Preview Lab → · Contrast checker → · Palette generator →

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