#0F1C5E#0F1C5E

#0F1C5E is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.8% C 0.118 H 268.2°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#0F1C5E
RGBrgb(15, 28, 94)
HSLhsl(230, 72%, 21%)
HSVhsv(230, 84%, 37%)
CMYKcmyk(84%, 70.2%, 0%, 63.1%)
CIE-LABlab(14.06, 21.71, -40.71)
CIE-LCHlch(14.06, 46.14, 298.06°)
OKLaboklab(26.77% -0.0038 -0.1178)
OKLCHoklch(26.77% 0.118 268.2)
XYZxyz(2.6319, 1.7399, 10.7846)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0F1C5E #5E510F
analogous
#0F445E #0F1C5E #2A0F5E
triadic
#0F1C5E #5E0F1C #1C5E0F
tetradic
#0F1C5E #5E0F44 #5E510F #0F5E2A
square
#0F1C5E #5E0F44 #5E510F #0F5E2A
split-complementary
#0F1C5E #5E2A0F #445E0F
monochromatic
#04081A #070C29 #0F1C5E #172C93 #203BC8

Accessibility & contrast

On white

15.58
#0F1C5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0F1C5E
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0F1C5E#FFFFFF#000000##FFFFFF
##0F1C5E1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002860
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002E3A
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #0f1c5e;
/* rgb */ color: rgb(15, 28, 94);
/* oklch */ color: oklch(26.8% 0.118 268.2);
Tailwind
colors: {
  custom: {
    50: '#5d588c',
    500: '#0f1c5e',
    950: '#000000',
  },
}
SCSS
$custom: #0f1c5e;
$custom-light: #5d588c;
$custom-dark: #000000;
JSON
{
  "hex": "#0f1c5e",
  "rgb": {
    "r": 15,
    "g": 28,
    "b": 94
  },
  "hsl": {
    "h": 230.127,
    "s": 72.477,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26769,
    "c": 0.1179,
    "h": 268.2
  },
  "luminance": 0.0174
}

Semantic roles & 50–950 ramp

primary
#0F1C5E
secondary
#978731
accent
#D139EF
background
#F5F5F8
surface
#EAE9F0
border
#C6C5CB
text
#05030C
muted
#79787D

Preview Lab

Preview with #0F1C5E

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

Preview Lab → · Contrast checker → · Palette generator →

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