#0F1F5E#0F1F5E

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

Color values

HEX#0F1F5E
RGBrgb(15, 31, 94)
HSLhsl(228, 72%, 21%)
HSVhsv(228, 84%, 37%)
CMYKcmyk(84%, 67%, 0%, 63.1%)
CIE-LABlab(14.90, 19.52, -39.34)
CIE-LCHlch(14.90, 43.91, 296.39°)
OKLaboklab(27.39% -0.0057 -0.1138)
OKLCHoklch(27.39% 0.114 267.1)
XYZxyz(2.7067, 1.8894, 10.8095)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1F5E #5E4E0F
analogous
#0F475E #0F1F5E #270F5E
triadic
#0F1F5E #5E0F1F #1F5E0F
tetradic
#0F1F5E #5E0F47 #5E4E0F #0F5E27
square
#0F1F5E #5E0F47 #5E4E0F #0F5E27
split-complementary
#0F1F5E #5E270F #475E0F
monochromatic
#04091A #070E29 #0F1F5E #173093 #2042C8

Accessibility & contrast

On white

15.24
#0F1F5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1F5E
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1F5E#FFFFFF#000000##FFFFFF
##0F1F5E1.0015.241.3815.24
#FFFFFF15.241.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002960
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#002F3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0f1f5e;
/* rgb */ color: rgb(15, 31, 94);
/* oklch */ color: oklch(27.4% 0.114 267.1);
Tailwind
colors: {
  custom: {
    50: '#5d5a8c',
    500: '#0f1f5e',
    950: '#000000',
  },
}
SCSS
$custom: #0f1f5e;
$custom-light: #5d5a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1f5e",
  "rgb": {
    "r": 15,
    "g": 31,
    "b": 94
  },
  "hsl": {
    "h": 227.848,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27386,
    "c": 0.11394,
    "h": 267.1
  },
  "luminance": 0.0189
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #0F1F5E

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

Preview Lab → · Contrast checker → · Palette generator →

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