#1F155C#1F155C

#1F155C is a dark, moderate blue. Relative luminance 0.016; OKLCH L 26.4% C 0.119 H 280.8°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#1F155C
RGBrgb(31, 21, 92)
HSLhsl(248, 63%, 22%)
HSVhsv(248, 77%, 36%)
CMYKcmyk(66.3%, 77.2%, 0%, 63.9%)
CIE-LABlab(13.23, 27.77, -40.69)
CIE-LCHlch(13.23, 49.26, 304.31°)
OKLaboklab(26.4% 0.0224 -0.1173)
OKLCHoklch(26.4% 0.119 280.8)
XYZxyz(2.7644, 1.6001, 10.2863)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F155C #525C15
analogous
#152E5C #1F155C #43155C
triadic
#1F155C #5C1F15 #155C1F
tetradic
#1F155C #5C152E #525C15 #155C43
square
#1F155C #5C152E #525C15 #155C43
split-complementary
#1F155C #5C4315 #2E5C15
monochromatic
#080619 #0E0A2A #1F155C #30208E #412CC0

Accessibility & contrast

On white

15.91
#1F155C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#1F155C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F155C
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F155C#FFFFFF#000000##FFFFFF
##1F155C1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#001F5B
Tritanopia (blue-blind)
#002937
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f155c;
/* rgb */ color: rgb(31, 21, 92);
/* oklch */ color: oklch(26.4% 0.119 280.8);
Tailwind
colors: {
  custom: {
    50: '#64538b',
    500: '#1f155c',
    950: '#000000',
  },
}
SCSS
$custom: #1f155c;
$custom-light: #64538b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f155c",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 92
  },
  "hsl": {
    "h": 248.451,
    "s": 62.832,
    "l": 22.157
  },
  "oklch": {
    "l": 0.26404,
    "c": 0.11945,
    "h": 280.8
  },
  "luminance": 0.016
}

Semantic roles & 50–950 ramp

primary
#1F155C
secondary
#879339
accent
#E642CF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F155C

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

Preview Lab → · Contrast checker → · Palette generator →

#1F155C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva