#0F1F5F#0F1F5F

#0F1F5F is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.5% C 0.115 H 267.2°. Best body text is #FFFFFF at 15.20:1 contrast (WCAG AA passes).

Color values

HEX#0F1F5F
RGBrgb(15, 31, 95)
HSLhsl(228, 73%, 22%)
HSVhsv(228, 84%, 37%)
CMYKcmyk(84.2%, 67.4%, 0%, 62.7%)
CIE-LABlab(14.99, 19.94, -39.84)
CIE-LCHlch(14.99, 44.55, 296.58°)
OKLaboklab(27.49% -0.0057 -0.1153)
OKLCHoklch(27.49% 0.115 267.2)
XYZxyz(2.7518, 1.9074, 11.0474)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1F5F #5F4F0F
analogous
#0F475F #0F1F5F #270F5F
triadic
#0F1F5F #5F0F1F #1F5F0F
tetradic
#0F1F5F #5F0F47 #5F4F0F #0F5F27
square
#0F1F5F #5F0F47 #5F4F0F #0F5F27
split-complementary
#0F1F5F #5F270F #475F0F
monochromatic
#04091A #070E2A #0F1F5F #173094 #2041C9

Accessibility & contrast

On white

15.20
#0F1F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#0F1F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1F5F
15.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1F5F#FFFFFF#000000##FFFFFF
##0F1F5F1.0015.201.3815.20
#FFFFFF15.201.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A61
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#00303B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #0f1f5f;
/* rgb */ color: rgb(15, 31, 95);
/* oklch */ color: oklch(27.5% 0.115 267.2);
Tailwind
colors: {
  custom: {
    50: '#5d5a8d',
    500: '#0f1f5f',
    950: '#000000',
  },
}
SCSS
$custom: #0f1f5f;
$custom-light: #5d5a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1f5f",
  "rgb": {
    "r": 15,
    "g": 31,
    "b": 95
  },
  "hsl": {
    "h": 228,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27489,
    "c": 0.11542,
    "h": 267.2
  },
  "luminance": 0.01908
}

Semantic roles & 50–950 ramp

primary
#0F1F5F
secondary
#988432
accent
#CB38EF
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F1F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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