#0F1F5D#0F1F5D

#0F1F5D is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.3% C 0.112 H 267.1°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#0F1F5D
RGBrgb(15, 31, 93)
HSLhsl(228, 72%, 21%)
HSVhsv(228, 84%, 36%)
CMYKcmyk(83.9%, 66.7%, 0%, 63.5%)
CIE-LABlab(14.80, 19.09, -38.83)
CIE-LCHlch(14.80, 43.27, 296.18°)
OKLaboklab(27.28% -0.0057 -0.1123)
OKLCHoklch(27.28% 0.112 267.1)
XYZxyz(2.6621, 1.8715, 10.5747)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1F5D #5D4D0F
analogous
#0F465D #0F1F5D #260F5D
triadic
#0F1F5D #5D0F1F #1F5D0F
tetradic
#0F1F5D #5D0F46 #5D4D0F #0F5D26
square
#0F1F5D #5D0F46 #5D4D0F #0F5D26
split-complementary
#0F1F5D #5D260F #465D0F
monochromatic
#04091A #060D28 #0F1F5D #173192 #2042C6

Accessibility & contrast

On white

15.28
#0F1F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#0F1F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1F5D
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1F5D#FFFFFF#000000##FFFFFF
##0F1F5D1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#002F3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0f1f5d;
/* rgb */ color: rgb(15, 31, 93);
/* oklch */ color: oklch(27.3% 0.112 267.1);
Tailwind
colors: {
  custom: {
    50: '#5c5a8c',
    500: '#0f1f5d',
    950: '#000000',
  },
}
SCSS
$custom: #0f1f5d;
$custom-light: #5c5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1f5d",
  "rgb": {
    "r": 15,
    "g": 31,
    "b": 93
  },
  "hsl": {
    "h": 227.692,
    "s": 72.222,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27284,
    "c": 0.11245,
    "h": 267.1
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#0F1F5D
secondary
#968231
accent
#CA39EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F1F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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