#0F1B5C#0F1B5C

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

Color values

HEX#0F1B5C
RGBrgb(15, 27, 92)
HSLhsl(231, 72%, 21%)
HSVhsv(231, 84%, 36%)
CMYKcmyk(83.7%, 70.7%, 0%, 63.9%)
CIE-LABlab(13.58, 21.60, -40.16)
CIE-LCHlch(13.58, 45.60, 298.27°)
OKLaboklab(26.36% -0.0031 -0.1162)
OKLCHoklch(26.36% 0.116 268.5)
XYZxyz(2.5200, 1.6578, 10.3103)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1B5C #5C500F
analogous
#0F415C #0F1B5C #290F5C
triadic
#0F1B5C #5C0F1B #1B5C0F
tetradic
#0F1B5C #5C0F41 #5C500F #0F5C29
square
#0F1B5C #5C0F41 #5C500F #0F5C29
split-complementary
#0F1B5C #5C290F #415C0F
monochromatic
#04081A #060C27 #0F1B5C #182A91 #203AC5

Accessibility & contrast

On white

15.77
#0F1B5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1B5C
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1B5C#FFFFFF#000000##FFFFFF
##0F1B5C1.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0f1b5c;
/* rgb */ color: rgb(15, 27, 92);
/* oklch */ color: oklch(26.4% 0.116 268.5);
Tailwind
colors: {
  custom: {
    50: '#5d578b',
    500: '#0f1b5c',
    950: '#000000',
  },
}
SCSS
$custom: #0f1b5c;
$custom-light: #5d578b;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1b5c",
  "rgb": {
    "r": 15,
    "g": 27,
    "b": 92
  },
  "hsl": {
    "h": 230.649,
    "s": 71.963,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26355,
    "c": 0.11629,
    "h": 268.5
  },
  "luminance": 0.01658
}

Semantic roles & 50–950 ramp

primary
#0F1B5C
secondary
#958631
accent
#D239EF
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F1B5C

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

Preview Lab → · Contrast checker → · Palette generator →

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