#1F155E#1F155E

#1F155E is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.6% C 0.122 H 280.3°. Best body text is #FFFFFF at 15.82:1 contrast (WCAG AA passes).

Color values

HEX#1F155E
RGBrgb(31, 21, 94)
HSLhsl(248, 63%, 23%)
HSVhsv(248, 78%, 37%)
CMYKcmyk(67%, 77.7%, 0%, 63.1%)
CIE-LABlab(13.45, 28.47, -41.68)
CIE-LCHlch(13.45, 50.47, 304.34°)
OKLaboklab(26.62% 0.0219 -0.1202)
OKLCHoklch(26.62% 0.122 280.3)
XYZxyz(2.8530, 1.6356, 10.7529)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F155E #545E15
analogous
#15305E #1F155E #43155E
triadic
#1F155E #5E1F15 #155E1F
tetradic
#1F155E #5E1530 #545E15 #155E43
square
#1F155E #5E1530 #545E15 #155E43
split-complementary
#1F155E #5E4315 #305E15
monochromatic
#080619 #0F0A2C #1F155E #2F2090 #402BC2

Accessibility & contrast

On white

15.82
#1F155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#1F155E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F155E
15.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F155E#FFFFFF#000000##FFFFFF
##1F155E1.0015.821.3315.82
#FFFFFF15.821.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#002938
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #1f155e;
/* rgb */ color: rgb(31, 21, 94);
/* oklch */ color: oklch(26.6% 0.122 280.3);
Tailwind
colors: {
  custom: {
    50: '#64548c',
    500: '#1f155e',
    950: '#000000',
  },
}
SCSS
$custom: #1f155e;
$custom-light: #64548c;
$custom-dark: #000000;
JSON
{
  "hex": "#1f155e",
  "rgb": {
    "r": 31,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 248.219,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.26621,
    "c": 0.12221,
    "h": 280.3
  },
  "luminance": 0.01636
}

Semantic roles & 50–950 ramp

primary
#1F155E
secondary
#899539
accent
#E741D0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1F155E

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

Preview Lab → · Contrast checker → · Palette generator →

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