#0F1B5E#0F1B5E

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

Color values

HEX#0F1B5E
RGBrgb(15, 27, 94)
HSLhsl(231, 72%, 21%)
HSVhsv(231, 84%, 37%)
CMYKcmyk(84%, 71.3%, 0%, 63.1%)
CIE-LABlab(13.79, 22.43, -41.16)
CIE-LCHlch(13.79, 46.87, 298.59°)
OKLaboklab(26.57% -0.0032 -0.1191)
OKLCHoklch(26.57% 0.119 268.5)
XYZxyz(2.6086, 1.6933, 10.7769)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1B5E #5E520F
analogous
#0F435E #0F1B5E #2B0F5E
triadic
#0F1B5E #5E0F1B #1B5E0F
tetradic
#0F1B5E #5E0F43 #5E520F #0F5E2B
square
#0F1B5E #5E0F43 #5E520F #0F5E2B
split-complementary
#0F1B5E #5E2B0F #435E0F
monochromatic
#04081A #070C29 #0F1B5E #172A93 #2039C8

Accessibility & contrast

On white

15.69
#0F1B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1B5E
15.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1B5E#FFFFFF#000000##FFFFFF
##0F1B5E1.0015.691.3415.69
#FFFFFF15.691.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002760
Deuteranopia (green-blind)
#001F5D
Tritanopia (blue-blind)
#002D3A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0f1b5e;
/* rgb */ color: rgb(15, 27, 94);
/* oklch */ color: oklch(26.6% 0.119 268.5);
Tailwind
colors: {
  custom: {
    50: '#5d578c',
    500: '#0f1b5e',
    950: '#000000',
  },
}
SCSS
$custom: #0f1b5e;
$custom-light: #5d578c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1b5e",
  "rgb": {
    "r": 15,
    "g": 27,
    "b": 94
  },
  "hsl": {
    "h": 230.886,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26571,
    "c": 0.11919,
    "h": 268.5
  },
  "luminance": 0.01694
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #0F1B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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