#0F1B5F#0F1B5F

#0F1B5F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 26.7% C 0.121 H 268.4°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#0F1B5F
RGBrgb(15, 27, 95)
HSLhsl(231, 73%, 22%)
HSVhsv(231, 84%, 37%)
CMYKcmyk(84.2%, 71.6%, 0%, 62.7%)
CIE-LABlab(13.89, 22.84, -41.65)
CIE-LCHlch(13.89, 47.50, 298.74°)
OKLaboklab(26.68% -0.0033 -0.1206)
OKLCHoklch(26.68% 0.121 268.4)
XYZxyz(2.6538, 1.7113, 11.0147)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1B5F #5F530F
analogous
#0F435F #0F1B5F #2B0F5F
triadic
#0F1B5F #5F0F1B #1B5F0F
tetradic
#0F1B5F #5F0F43 #5F530F #0F5F2B
square
#0F1B5F #5F0F43 #5F530F #0F5F2B
split-complementary
#0F1B5F #5F2B0F #435F0F
monochromatic
#04081A #070C2A #0F1B5F #172A94 #2039C9

Accessibility & contrast

On white

15.64
#0F1B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1B5F
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1B5F#FFFFFF#000000##FFFFFF
##0F1B5F1.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#002D3A
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0f1b5f;
/* rgb */ color: rgb(15, 27, 95);
/* oklch */ color: oklch(26.7% 0.121 268.4);
Tailwind
colors: {
  custom: {
    50: '#5d578d',
    500: '#0f1b5f',
    950: '#000000',
  },
}
SCSS
$custom: #0f1b5f;
$custom-light: #5d578d;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1b5f",
  "rgb": {
    "r": 15,
    "g": 27,
    "b": 95
  },
  "hsl": {
    "h": 231,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2668,
    "c": 0.12063,
    "h": 268.4
  },
  "luminance": 0.01712
}

Semantic roles & 50–950 ramp

primary
#0F1B5F
secondary
#988932
accent
#D438EF
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F1B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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