#0F1F56#0F1F56

#0F1F56 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.6% C 0.102 H 266.8°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#0F1F56
RGBrgb(15, 31, 86)
HSLhsl(226, 70%, 20%)
HSVhsv(226, 83%, 34%)
CMYKcmyk(82.6%, 64%, 0%, 66.3%)
CIE-LABlab(14.13, 16.10, -35.22)
CIE-LCHlch(14.13, 38.72, 294.57°)
OKLaboklab(26.58% -0.0057 -0.1017)
OKLCHoklch(26.58% 0.102 266.8)
XYZxyz(2.3661, 1.7532, 9.0160)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1F56 #56460F
analogous
#0F4356 #0F1F56 #230F56
triadic
#0F1F56 #560F1F #1F560F
tetradic
#0F1F56 #560F43 #56460F #0F5623
square
#0F1F56 #560F43 #56460F #0F5623
split-complementary
#0F1F56 #56230F #43560F
monochromatic
#05091A #060C22 #0F1F56 #18328A #2145BE

Accessibility & contrast

On white

15.55
#0F1F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#0F1F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1F56
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1F56#FFFFFF#000000##FFFFFF
##0F1F561.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002758
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0f1f56;
/* rgb */ color: rgb(15, 31, 86);
/* oklch */ color: oklch(26.6% 0.102 266.8);
Tailwind
colors: {
  custom: {
    50: '#5a5a86',
    500: '#0f1f56',
    950: '#000000',
  },
}
SCSS
$custom: #0f1f56;
$custom-light: #5a5a86;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1f56",
  "rgb": {
    "r": 15,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 226.479,
    "s": 70.297,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26584,
    "c": 0.10187,
    "h": 266.8
  },
  "luminance": 0.01753
}

Semantic roles & 50–950 ramp

primary
#0F1F56
secondary
#907A31
accent
#C53BED
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0F1F56

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

Preview Lab → · Contrast checker → · Palette generator →

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