#0F1D5A#0F1D5A

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

Color values

HEX#0F1D5A
RGBrgb(15, 29, 90)
HSLhsl(229, 71%, 21%)
HSVhsv(229, 83%, 35%)
CMYKcmyk(83.3%, 67.8%, 0%, 64.7%)
CIE-LABlab(13.93, 19.30, -38.24)
CIE-LCHlch(13.93, 42.84, 296.78°)
OKLaboklab(26.55% -0.0043 -0.1106)
OKLCHoklch(26.55% 0.111 267.8)
XYZxyz(2.4812, 1.7182, 9.8718)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1D5A #5A4C0F
analogous
#0F425A #0F1D5A #260F5A
triadic
#0F1D5A #5A0F1D #1D5A0F
tetradic
#0F1D5A #5A0F42 #5A4C0F #0F5A26
square
#0F1D5A #5A0F42 #5A4C0F #0F5A26
split-complementary
#0F1D5A #5A260F #425A0F
monochromatic
#04081A #060C26 #0F1D5A #182E8E #203FC3

Accessibility & contrast

On white

15.63
#0F1D5A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1D5A
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1D5A#FFFFFF#000000##FFFFFF
##0F1D5A1.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#002D38
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0f1d5a;
/* rgb */ color: rgb(15, 29, 90);
/* oklch */ color: oklch(26.6% 0.111 267.8);
Tailwind
colors: {
  custom: {
    50: '#5c5889',
    500: '#0f1d5a',
    950: '#000000',
  },
}
SCSS
$custom: #0f1d5a;
$custom-light: #5c5889;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1d5a",
  "rgb": {
    "r": 15,
    "g": 29,
    "b": 90
  },
  "hsl": {
    "h": 228.8,
    "s": 71.429,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26553,
    "c": 0.11068,
    "h": 267.8
  },
  "luminance": 0.01718
}

Semantic roles & 50–950 ramp

primary
#0F1D5A
secondary
#948131
accent
#CC3AEE
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F1D5A

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

Preview Lab → · Contrast checker → · Palette generator →

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