#0F124E#0F124E

#0F124E is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 23.1% C 0.107 H 272.1°. Best body text is #FFFFFF at 17.26:1 contrast (WCAG AA passes).

Color values

HEX#0F124E
RGBrgb(15, 18, 78)
HSLhsl(237, 68%, 18%)
HSVhsv(237, 81%, 31%)
CMYKcmyk(80.8%, 76.9%, 0%, 69.4%)
CIE-LABlab(9.67, 22.32, -37.06)
CIE-LCHlch(9.67, 43.27, 301.06°)
OKLaboklab(23.06% 0.004 -0.1072)
OKLCHoklch(23.06% 0.107 272.1)
XYZxyz(1.7880, 1.0840, 7.3213)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F124E #4E4B0F
analogous
#0F314E #0F124E #2B0F4E
triadic
#0F124E #4E0F12 #124E0F
tetradic
#0F124E #4E0F31 #4E4B0F #0F4E2B
square
#0F124E #4E0F31 #4E4B0F #0F4E2B
split-complementary
#0F124E #4E2B0F #314E0F
monochromatic
#05061A #05061B #0F124E #191E81 #232AB5

Accessibility & contrast

On white

17.26
#0F124E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#0F124E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F124E
17.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F124E#FFFFFF#000000##FFFFFF
##0F124E1.0017.261.2217.26
#FFFFFF17.261.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E50
Deuteranopia (green-blind)
#00184D
Tritanopia (blue-blind)
#00232E
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #0f124e;
/* rgb */ color: rgb(15, 18, 78);
/* oklch */ color: oklch(23.1% 0.107 272.1);
Tailwind
colors: {
  custom: {
    50: '#595080',
    500: '#0f124e',
    950: '#000000',
  },
}
SCSS
$custom: #0f124e;
$custom-light: #595080;
$custom-dark: #000000;
JSON
{
  "hex": "#0f124e",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 78
  },
  "hsl": {
    "h": 237.143,
    "s": 67.742,
    "l": 18.235
  },
  "oklch": {
    "l": 0.23058,
    "c": 0.10731,
    "h": 272.1
  },
  "luminance": 0.01084
}

Semantic roles & 50–950 ramp

primary
#0F124E
secondary
#888431
accent
#E23DEB
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0F124E

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

Preview Lab → · Contrast checker → · Palette generator →

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