#0F1F4F#0F1F4F

#0F1F4F is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.9% C 0.091 H 266.2°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#0F1F4F
RGBrgb(15, 31, 79)
HSLhsl(225, 68%, 18%)
HSVhsv(225, 81%, 31%)
CMYKcmyk(81%, 60.8%, 0%, 69%)
CIE-LABlab(13.51, 13.07, -31.48)
CIE-LCHlch(13.51, 34.09, 292.55°)
OKLaboklab(25.92% -0.0061 -0.0907)
OKLCHoklch(25.92% 0.091 266.2)
XYZxyz(2.0978, 1.6458, 7.6027)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1F4F #4F3F0F
analogous
#0F3F4F #0F1F4F #1F0F4F
triadic
#0F1F4F #4F0F1F #1F4F0F
tetradic
#0F1F4F #4F0F3F #4F3F0F #0F4F1F
square
#0F1F4F #4F0F3F #4F3F0F #0F4F1F
split-complementary
#0F1F4F #4F1F0F #3F4F0F
monochromatic
#050A1A #050B1C #0F1F4F #193382 #2347B6

Accessibility & contrast

On white

15.80
#0F1F4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1F4F
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1F4F#FFFFFF#000000##FFFFFF
##0F1F4F1.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002651
Deuteranopia (green-blind)
#00204E
Tritanopia (blue-blind)
#002B33
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0f1f4f;
/* rgb */ color: rgb(15, 31, 79);
/* oklch */ color: oklch(25.9% 0.091 266.2);
Tailwind
colors: {
  custom: {
    50: '#585a81',
    500: '#0f1f4f',
    950: '#000000',
  },
}
SCSS
$custom: #0f1f4f;
$custom-light: #585a81;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1f4f",
  "rgb": {
    "r": 15,
    "g": 31,
    "b": 79
  },
  "hsl": {
    "h": 225,
    "s": 68.085,
    "l": 18.431
  },
  "oklch": {
    "l": 0.25916,
    "c": 0.09094,
    "h": 266.2
  },
  "luminance": 0.01646
}

Semantic roles & 50–950 ramp

primary
#0F1F4F
secondary
#897331
accent
#BF3DEB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#04030A
muted
#79787C

Preview Lab

Preview with #0F1F4F

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

Preview Lab → · Contrast checker → · Palette generator →

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