#0F1C5D#0F1C5D

#0F1C5D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.7% C 0.116 H 268.2°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#0F1C5D
RGBrgb(15, 28, 93)
HSLhsl(230, 72%, 21%)
HSVhsv(230, 84%, 36%)
CMYKcmyk(83.9%, 69.9%, 0%, 63.5%)
CIE-LABlab(13.96, 21.29, -40.21)
CIE-LCHlch(13.96, 45.50, 297.90°)
OKLaboklab(26.66% -0.0037 -0.1164)
OKLCHoklch(26.66% 0.116 268.2)
XYZxyz(2.5874, 1.7221, 10.5498)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1C5D #5D500F
analogous
#0F435D #0F1C5D #290F5D
triadic
#0F1C5D #5D0F1C #1C5D0F
tetradic
#0F1C5D #5D0F43 #5D500F #0F5D29
square
#0F1C5D #5D0F43 #5D500F #0F5D29
split-complementary
#0F1C5D #5D290F #435D0F
monochromatic
#04081A #060C28 #0F1C5D #172C92 #203CC6

Accessibility & contrast

On white

15.62
#0F1C5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#0F1C5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1C5D
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1C5D#FFFFFF#000000##FFFFFF
##0F1C5D1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#002D39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0f1c5d;
/* rgb */ color: rgb(15, 28, 93);
/* oklch */ color: oklch(26.7% 0.116 268.2);
Tailwind
colors: {
  custom: {
    50: '#5d588c',
    500: '#0f1c5d',
    950: '#000000',
  },
}
SCSS
$custom: #0f1c5d;
$custom-light: #5d588c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1c5d",
  "rgb": {
    "r": 15,
    "g": 28,
    "b": 93
  },
  "hsl": {
    "h": 230,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26662,
    "c": 0.11644,
    "h": 268.2
  },
  "luminance": 0.01722
}

Semantic roles & 50–950 ramp

primary
#0F1C5D
secondary
#968631
accent
#D139EF
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F1C5D

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

Preview Lab → · Contrast checker → · Palette generator →

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