#0F1276#0F1276

#0F1276 is a dark, vivid blue. Relative luminance 0.018; OKLCH L 28.0% C 0.161 H 268.7°. Best body text is #FFFFFF at 15.35:1 contrast (WCAG AA passes).

Color values

HEX#0F1276
RGBrgb(15, 18, 118)
HSLhsl(238, 77%, 26%)
HSVhsv(238, 87%, 46%)
CMYKcmyk(87.3%, 84.7%, 0%, 53.7%)
CIE-LABlab(14.63, 37.14, -55.50)
CIE-LCHlch(14.63, 66.78, 303.79°)
OKLaboklab(28.01% -0.0036 -0.1607)
OKLCHoklch(28.01% 0.161 268.7)
XYZxyz(3.6822, 1.8417, 17.2974)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1276 #76730F
analogous
#0F4576 #0F1276 #3F0F76
triadic
#0F1276 #760F12 #12760F
tetradic
#0F1276 #760F45 #76730F #0F763F
square
#0F1276 #760F45 #76730F #0F763F
split-complementary
#0F1276 #763F0F #45760F
monochromatic
#03041B #080A40 #0F1276 #161AAC #1D23E2

Accessibility & contrast

On white

15.35
#0F1276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#0F1276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1276
15.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1276#FFFFFF#000000##FFFFFF
##0F12761.0015.351.3715.35
#FFFFFF15.351.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A79
Deuteranopia (green-blind)
#001F74
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #0f1276;
/* rgb */ color: rgb(15, 18, 118);
/* oklch */ color: oklch(28.0% 0.161 268.7);
Tailwind
colors: {
  custom: {
    50: '#65539f',
    500: '#0f1276',
    950: '#000000',
  },
}
SCSS
$custom: #0f1276;
$custom-light: #65539f;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1276",
  "rgb": {
    "r": 15,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 238.252,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28014,
    "c": 0.16078,
    "h": 268.7
  },
  "luminance": 0.01842
}

Semantic roles & 50–950 ramp

primary
#0F1276
secondary
#ADAA33
accent
#EE34F4
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020F
muted
#7A787E

Preview Lab

Preview with #0F1276

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

Preview Lab → · Contrast checker → · Palette generator →

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