#0F124C#0F124C

#0F124C is a very dark, moderate blue. Relative luminance 0.011; OKLCH L 22.8% C 0.104 H 272.4°. Best body text is #FFFFFF at 17.34:1 contrast (WCAG AA passes).

Color values

HEX#0F124C
RGBrgb(15, 18, 76)
HSLhsl(237, 67%, 18%)
HSVhsv(237, 80%, 30%)
CMYKcmyk(80.3%, 76.3%, 0%, 70.2%)
CIE-LABlab(9.45, 21.52, -36.05)
CIE-LCHlch(9.45, 41.98, 300.83°)
OKLaboklab(22.83% 0.0043 -0.1043)
OKLCHoklch(22.83% 0.104 272.4)
XYZxyz(1.7174, 1.0558, 6.9494)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F124C #4C490F
analogous
#0F304C #0F124C #2A0F4C
triadic
#0F124C #4C0F12 #124C0F
tetradic
#0F124C #4C0F30 #4C490F #0F4C2A
square
#0F124C #4C0F30 #4C490F #0F4C2A
split-complementary
#0F124C #4C2A0F #304C0F
monochromatic
#05061A #05061A #0F124C #191E7F #232AB2

Accessibility & contrast

On white

17.34
#0F124C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F124C
17.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F124C#FFFFFF#000000##FFFFFF
##0F124C1.0017.341.2117.34
#FFFFFF17.341.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4E
Deuteranopia (green-blind)
#00174B
Tritanopia (blue-blind)
#00222D
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #0f124c;
/* rgb */ color: rgb(15, 18, 76);
/* oklch */ color: oklch(22.8% 0.104 272.4);
Tailwind
colors: {
  custom: {
    50: '#59507f',
    500: '#0f124c',
    950: '#000000',
  },
}
SCSS
$custom: #0f124c;
$custom-light: #59507f;
$custom-dark: #000000;
JSON
{
  "hex": "#0f124c",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 76
  },
  "hsl": {
    "h": 237.049,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.22827,
    "c": 0.10436,
    "h": 272.4
  },
  "luminance": 0.01056
}

Semantic roles & 50–950 ramp

primary
#0F124C
secondary
#868231
accent
#E13EEA
background
#F5F4F7
surface
#E9E7EE
border
#C5C3C9
text
#04020A
muted
#79787C

Preview Lab

Preview with #0F124C

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

Preview Lab → · Contrast checker → · Palette generator →

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