#0F1B5B#0F1B5B

#0F1B5B is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.2% C 0.115 H 268.5°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#0F1B5B
RGBrgb(15, 27, 91)
HSLhsl(231, 72%, 21%)
HSVhsv(231, 84%, 36%)
CMYKcmyk(83.5%, 70.3%, 0%, 64.3%)
CIE-LABlab(13.47, 21.19, -39.66)
CIE-LCHlch(13.47, 44.97, 298.11°)
OKLaboklab(26.25% -0.003 -0.1148)
OKLCHoklch(26.25% 0.115 268.5)
XYZxyz(2.4766, 1.6405, 10.0816)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1B5B #5B4F0F
analogous
#0F415B #0F1B5B #290F5B
triadic
#0F1B5B #5B0F1B #1B5B0F
tetradic
#0F1B5B #5B0F41 #5B4F0F #0F5B29
square
#0F1B5B #5B0F41 #5B4F0F #0F5B29
split-complementary
#0F1B5B #5B290F #415B0F
monochromatic
#04081A #060B26 #0F1B5B #182B90 #203AC4

Accessibility & contrast

On white

15.81
#0F1B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#0F1B5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1B5B
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1B5B#FFFFFF#000000##FFFFFF
##0F1B5B1.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#001F5A
Tritanopia (blue-blind)
#002C38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0f1b5b;
/* rgb */ color: rgb(15, 27, 91);
/* oklch */ color: oklch(26.2% 0.115 268.5);
Tailwind
colors: {
  custom: {
    50: '#5c578a',
    500: '#0f1b5b',
    950: '#000000',
  },
}
SCSS
$custom: #0f1b5b;
$custom-light: #5c578a;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1b5b",
  "rgb": {
    "r": 15,
    "g": 27,
    "b": 91
  },
  "hsl": {
    "h": 230.526,
    "s": 71.698,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26247,
    "c": 0.11482,
    "h": 268.5
  },
  "luminance": 0.01641
}

Semantic roles & 50–950 ramp

primary
#0F1B5B
secondary
#958531
accent
#D239EE
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F1B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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