#0F1876#0F1876

#0F1876 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 28.8% C 0.155 H 268.2°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#0F1876
RGBrgb(15, 24, 118)
HSLhsl(235, 77%, 26%)
HSVhsv(235, 87%, 46%)
CMYKcmyk(87.3%, 79.7%, 0%, 53.7%)
CIE-LABlab(15.81, 33.74, -53.55)
CIE-LCHlch(15.81, 63.29, 302.21°)
OKLaboklab(28.84% -0.0049 -0.1552)
OKLCHoklch(28.84% 0.155 268.2)
XYZxyz(3.7925, 2.0624, 17.3342)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1876 #766D0F
analogous
#0F4B76 #0F1876 #390F76
triadic
#0F1876 #760F18 #18760F
tetradic
#0F1876 #760F4B #766D0F #0F7639
square
#0F1876 #760F4B #766D0F #0F7639
split-complementary
#0F1876 #76390F #4B760F
monochromatic
#03061B #080D40 #0F1876 #1623AC #1D2EE2

Accessibility & contrast

On white

14.87
#0F1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#0F1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1876
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1876#FFFFFF#000000##FFFFFF
##0F18761.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002274
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #0f1876;
/* rgb */ color: rgb(15, 24, 118);
/* oklch */ color: oklch(28.8% 0.155 268.2);
Tailwind
colors: {
  custom: {
    50: '#65569f',
    500: '#0f1876',
    950: '#000000',
  },
}
SCSS
$custom: #0f1876;
$custom-light: #65569f;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1876",
  "rgb": {
    "r": 15,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 234.757,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28841,
    "c": 0.15527,
    "h": 268.2
  },
  "luminance": 0.02063
}

Semantic roles & 50–950 ramp

primary
#0F1876
secondary
#ADA333
accent
#E334F4
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #0F1876

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

Preview Lab → · Contrast checker → · Palette generator →

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