#0F1C57#0F1C57

#0F1C57 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.0% C 0.108 H 268.1°. Best body text is #FFFFFF at 15.86:1 contrast (WCAG AA passes).

Color values

HEX#0F1C57
RGBrgb(15, 28, 87)
HSLhsl(229, 71%, 20%)
HSVhsv(229, 83%, 34%)
CMYKcmyk(82.8%, 67.8%, 0%, 65.9%)
CIE-LABlab(13.35, 18.78, -37.17)
CIE-LCHlch(13.35, 41.65, 296.80°)
OKLaboklab(26.03% -0.0035 -0.1075)
OKLCHoklch(26.03% 0.108 268.1)
XYZxyz(2.3320, 1.6199, 9.2048)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1C57 #574A0F
analogous
#0F4057 #0F1C57 #260F57
triadic
#0F1C57 #570F1C #1C570F
tetradic
#0F1C57 #570F40 #574A0F #0F5726
square
#0F1C57 #570F40 #574A0F #0F5726
split-complementary
#0F1C57 #57260F #40570F
monochromatic
#05081A #060B23 #0F1C57 #182D8B #213EBF

Accessibility & contrast

On white

15.86
#0F1C57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#0F1C57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0F1C57
15.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1C57#FFFFFF#000000##FFFFFF
##0F1C571.0015.861.3215.86
#FFFFFF15.861.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#001F56
Tritanopia (blue-blind)
#002B36
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #0f1c57;
/* rgb */ color: rgb(15, 28, 87);
/* oklch */ color: oklch(26.0% 0.108 268.1);
Tailwind
colors: {
  custom: {
    50: '#5b5787',
    500: '#0f1c57',
    950: '#000000',
  },
}
SCSS
$custom: #0f1c57;
$custom-light: #5b5787;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1c57",
  "rgb": {
    "r": 15,
    "g": 28,
    "b": 87
  },
  "hsl": {
    "h": 229.167,
    "s": 70.588,
    "l": 20
  },
  "oklch": {
    "l": 0.26032,
    "c": 0.10754,
    "h": 268.1
  },
  "luminance": 0.0162
}

Semantic roles & 50–950 ramp

primary
#0F1C57
secondary
#917F31
accent
#CD3AED
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04030B
muted
#79787C

Preview Lab

Preview with #0F1C57

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

Preview Lab → · Contrast checker → · Palette generator →

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