#0F1256#0F1256

#0F1256 is a very dark, moderate blue. Relative luminance 0.012; OKLCH L 24.0% C 0.119 H 271.3°. Best body text is #FFFFFF at 16.92:1 contrast (WCAG AA passes).

Color values

HEX#0F1256
RGBrgb(15, 18, 86)
HSLhsl(237, 70%, 20%)
HSVhsv(237, 83%, 34%)
CMYKcmyk(82.6%, 79.1%, 0%, 66.3%)
CIE-LABlab(10.60, 25.48, -41.02)
CIE-LCHlch(10.60, 48.29, 301.85°)
OKLaboklab(24% 0.0027 -0.1187)
OKLCHoklch(24% 0.119 271.3)
XYZxyz(2.0925, 1.2058, 8.9248)
Luminance0.0121 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1256 #56530F
analogous
#0F3556 #0F1256 #300F56
triadic
#0F1256 #560F12 #12560F
tetradic
#0F1256 #560F35 #56530F #0F5630
square
#0F1256 #560F35 #56530F #0F5630
split-complementary
#0F1256 #56300F #35560F
monochromatic
#05051A #060722 #0F1256 #181D8A #2128BE

Accessibility & contrast

On white

16.92
#0F1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#0F1256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1256
16.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1256#FFFFFF#000000##FFFFFF
##0F12561.0016.921.2416.92
#FFFFFF16.921.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002058
Deuteranopia (green-blind)
#001955
Tritanopia (blue-blind)
#002632
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #0f1256;
/* rgb */ color: rgb(15, 18, 86);
/* oklch */ color: oklch(24.0% 0.119 271.3);
Tailwind
colors: {
  custom: {
    50: '#5c5086',
    500: '#0f1256',
    950: '#000000',
  },
}
SCSS
$custom: #0f1256;
$custom-light: #5c5086;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1256",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 237.465,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.24,
    "c": 0.11877,
    "h": 271.3
  },
  "luminance": 0.01206
}

Semantic roles & 50–950 ramp

primary
#0F1256
secondary
#908C31
accent
#E63BED
background
#F5F4F8
surface
#E9E7EF
border
#C5C3CA
text
#05020B
muted
#79787C

Preview Lab

Preview with #0F1256

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

Preview Lab → · Contrast checker → · Palette generator →

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