#0F1B5D#0F1B5D

#0F1B5D is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.5% C 0.118 H 268.5°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#0F1B5D
RGBrgb(15, 27, 93)
HSLhsl(231, 72%, 21%)
HSVhsv(231, 84%, 36%)
CMYKcmyk(83.9%, 71%, 0%, 63.5%)
CIE-LABlab(13.68, 22.01, -40.66)
CIE-LCHlch(13.68, 46.24, 298.43°)
OKLaboklab(26.46% -0.0031 -0.1177)
OKLCHoklch(26.46% 0.118 268.5)
XYZxyz(2.5640, 1.6754, 10.5421)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1B5D #5D510F
analogous
#0F425D #0F1B5D #2A0F5D
triadic
#0F1B5D #5D0F1B #1B5D0F
tetradic
#0F1B5D #5D0F42 #5D510F #0F5D2A
square
#0F1B5D #5D0F42 #5D510F #0F5D2A
split-complementary
#0F1B5D #5D2A0F #425D0F
monochromatic
#04081A #060C28 #0F1B5D #172A92 #203AC6

Accessibility & contrast

On white

15.73
#0F1B5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1B5D
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1B5D#FFFFFF#000000##FFFFFF
##0F1B5D1.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#001F5C
Tritanopia (blue-blind)
#002D39
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0f1b5d;
/* rgb */ color: rgb(15, 27, 93);
/* oklch */ color: oklch(26.5% 0.118 268.5);
Tailwind
colors: {
  custom: {
    50: '#5d578c',
    500: '#0f1b5d',
    950: '#000000',
  },
}
SCSS
$custom: #0f1b5d;
$custom-light: #5d578c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1b5d",
  "rgb": {
    "r": 15,
    "g": 27,
    "b": 93
  },
  "hsl": {
    "h": 230.769,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26463,
    "c": 0.11774,
    "h": 268.5
  },
  "luminance": 0.01676
}

Semantic roles & 50–950 ramp

primary
#0F1B5D
secondary
#968731
accent
#D339EF
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F1B5D

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

Preview Lab → · Contrast checker → · Palette generator →

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