#0F1F4E#0F1F4E

#0F1F4E is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.8% C 0.089 H 266.0°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#0F1F4E
RGBrgb(15, 31, 78)
HSLhsl(225, 68%, 18%)
HSVhsv(225, 81%, 31%)
CMYKcmyk(80.8%, 60.3%, 0%, 69.4%)
CIE-LABlab(13.42, 12.63, -30.94)
CIE-LCHlch(13.42, 33.42, 292.21°)
OKLaboklab(25.82% -0.0062 -0.0891)
OKLCHoklch(25.82% 0.089 266)
XYZxyz(2.0617, 1.6314, 7.4125)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1F4E #4E3E0F
analogous
#0F3E4E #0F1F4E #1E0F4E
triadic
#0F1F4E #4E0F1F #1F4E0F
tetradic
#0F1F4E #4E0F3E #4E3E0F #0F4E1E
square
#0F1F4E #4E0F3E #4E3E0F #0F4E1E
split-complementary
#0F1F4E #4E1E0F #3E4E0F
monochromatic
#050A1A #050B1B #0F1F4E #193381 #2348B5

Accessibility & contrast

On white

15.83
#0F1F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1F4E
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1F4E#FFFFFF#000000##FFFFFF
##0F1F4E1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#002A33
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0f1f4e;
/* rgb */ color: rgb(15, 31, 78);
/* oklch */ color: oklch(25.8% 0.089 266.0);
Tailwind
colors: {
  custom: {
    50: '#585a80',
    500: '#0f1f4e',
    950: '#000000',
  },
}
SCSS
$custom: #0f1f4e;
$custom-light: #585a80;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1f4e",
  "rgb": {
    "r": 15,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 224.762,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25824,
    "c": 0.08935,
    "h": 266
  },
  "luminance": 0.01632
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #0F1F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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