#0F1F4D#0F1F4D

#0F1F4D is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.7% C 0.088 H 265.9°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#0F1F4D
RGBrgb(15, 31, 77)
HSLhsl(225, 67%, 18%)
HSVhsv(225, 81%, 30%)
CMYKcmyk(80.5%, 59.7%, 0%, 69.8%)
CIE-LABlab(13.33, 12.20, -30.39)
CIE-LCHlch(13.33, 32.75, 291.87°)
OKLaboklab(25.73% -0.0062 -0.0875)
OKLCHoklch(25.73% 0.088 265.9)
XYZxyz(2.0261, 1.6171, 7.2251)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1F4D #4D3D0F
analogous
#0F3E4D #0F1F4D #1E0F4D
triadic
#0F1F4D #4D0F1F #1F4D0F
tetradic
#0F1F4D #4D0F3E #4D3D0F #0F4D1E
square
#0F1F4D #4D0F3E #4D3D0F #0F4D1E
split-complementary
#0F1F4D #4D1E0F #3E4D0F
monochromatic
#050A1A #050A1A #0F1F4D #193480 #2348B3

Accessibility & contrast

On white

15.87
#0F1F4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0F1F4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1F4D
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1F4D#FFFFFF#000000##FFFFFF
##0F1F4D1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254F
Deuteranopia (green-blind)
#00204C
Tritanopia (blue-blind)
#002A32
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0f1f4d;
/* rgb */ color: rgb(15, 31, 77);
/* oklch */ color: oklch(25.7% 0.088 265.9);
Tailwind
colors: {
  custom: {
    50: '#585a7f',
    500: '#0f1f4d',
    950: '#000000',
  },
}
SCSS
$custom: #0f1f4d;
$custom-light: #585a7f;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1f4d",
  "rgb": {
    "r": 15,
    "g": 31,
    "b": 77
  },
  "hsl": {
    "h": 224.516,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.25732,
    "c": 0.08775,
    "h": 265.9
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#0F1F4D
secondary
#877131
accent
#BE3EEA
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0F1F4D

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

Preview Lab → · Contrast checker → · Palette generator →

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