#0F124D#0F124D

#0F124D is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.9% C 0.106 H 272.3°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#0F124D
RGBrgb(15, 18, 77)
HSLhsl(237, 67%, 18%)
HSVhsv(237, 81%, 30%)
CMYKcmyk(80.5%, 76.6%, 0%, 69.8%)
CIE-LABlab(9.56, 21.92, -36.56)
CIE-LCHlch(9.56, 42.63, 300.94°)
OKLaboklab(22.94% 0.0042 -0.1057)
OKLCHoklch(22.94% 0.106 272.3)
XYZxyz(1.7524, 1.0698, 7.1339)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F124D #4D4A0F
analogous
#0F314D #0F124D #2B0F4D
triadic
#0F124D #4D0F12 #124D0F
tetradic
#0F124D #4D0F31 #4D4A0F #0F4D2B
square
#0F124D #4D0F31 #4D4A0F #0F4D2B
split-complementary
#0F124D #4D2B0F #314D0F
monochromatic
#05061A #05061A #0F124D #191E80 #232AB3

Accessibility & contrast

On white

17.30
#0F124D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#0F124D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F124D
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F124D#FFFFFF#000000##FFFFFF
##0F124D1.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E4F
Deuteranopia (green-blind)
#00184C
Tritanopia (blue-blind)
#00222D
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0f124d;
/* rgb */ color: rgb(15, 18, 77);
/* oklch */ color: oklch(22.9% 0.106 272.3);
Tailwind
colors: {
  custom: {
    50: '#595080',
    500: '#0f124d',
    950: '#000000',
  },
}
SCSS
$custom: #0f124d;
$custom-light: #595080;
$custom-dark: #000000;
JSON
{
  "hex": "#0f124d",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 77
  },
  "hsl": {
    "h": 237.097,
    "s": 67.391,
    "l": 18.039
  },
  "oklch": {
    "l": 0.22942,
    "c": 0.10583,
    "h": 272.3
  },
  "luminance": 0.0107
}

Semantic roles & 50–950 ramp

primary
#0F124D
secondary
#878331
accent
#E23EEA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0F124D

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

Preview Lab → · Contrast checker → · Palette generator →

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