#0F1172#0F1172

#0F1172 is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.4% C 0.157 H 269.1°. Best body text is #FFFFFF at 15.63:1 contrast (WCAG AA passes).

Color values

HEX#0F1172
RGBrgb(15, 17, 114)
HSLhsl(239, 77%, 25%)
HSVhsv(239, 87%, 45%)
CMYKcmyk(86.8%, 85.1%, 0%, 55.3%)
CIE-LABlab(13.93, 36.30, -54.09)
CIE-LCHlch(13.93, 65.14, 303.87°)
OKLaboklab(27.37% -0.0026 -0.1566)
OKLCHoklch(27.37% 0.157 269.1)
XYZxyz(3.4337, 1.7169, 16.0668)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1172 #72700F
analogous
#0F4272 #0F1172 #3E0F72
triadic
#0F1172 #720F11 #11720F
tetradic
#0F1172 #720F42 #72700F #0F723E
square
#0F1172 #720F42 #72700F #0F723E
split-complementary
#0F1172 #723E0F #42720F
monochromatic
#04041B #08093C #0F1172 #1619A8 #1D21DE

Accessibility & contrast

On white

15.63
#0F1172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#0F1172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1172
15.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1172#FFFFFF#000000##FFFFFF
##0F11721.0015.631.3415.63
#FFFFFF15.631.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002875
Deuteranopia (green-blind)
#001E70
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #0f1172;
/* rgb */ color: rgb(15, 17, 114);
/* oklch */ color: oklch(27.4% 0.157 269.1);
Tailwind
colors: {
  custom: {
    50: '#64529c',
    500: '#0f1172',
    950: '#000000',
  },
}
SCSS
$custom: #0f1172;
$custom-light: #64529c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1172",
  "rgb": {
    "r": 15,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 238.788,
    "s": 76.744,
    "l": 25.294
  },
  "oklch": {
    "l": 0.2737,
    "c": 0.15666,
    "h": 269.1
  },
  "luminance": 0.01717
}

Semantic roles & 50–950 ramp

primary
#0F1172
secondary
#AAA733
accent
#EF35F3
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #0F1172

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

Preview Lab → · Contrast checker → · Palette generator →

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