#1F2154#1F2154

#1F2154 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.9% C 0.091 H 277.1°. Best body text is #FFFFFF at 14.96:1 contrast (WCAG AA passes).

Color values

HEX#1F2154
RGBrgb(31, 33, 84)
HSLhsl(238, 46%, 23%)
HSVhsv(238, 63%, 33%)
CMYKcmyk(63.1%, 60.7%, 0%, 67.1%)
CIE-LABlab(15.59, 16.58, -31.46)
CIE-LCHlch(15.59, 35.56, 297.79°)
OKLaboklab(27.89% 0.0112 -0.0902)
OKLCHoklch(27.89% 0.091 277.1)
XYZxyz(2.7087, 2.0189, 8.6327)
Luminance0.0202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2154 #54521F
analogous
#1F3B54 #1F2154 #381F54
triadic
#1F2154 #541F21 #21541F
tetradic
#1F2154 #541F3B #54521F #1F5438
square
#1F2154 #541F3B #54521F #1F5438
split-complementary
#1F2154 #54381F #3B541F
monochromatic
#080916 #0F0F27 #1F2154 #2F3381 #4044AD

Accessibility & contrast

On white

14.96
#1F2154 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#1F2154 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2154
14.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2154#FFFFFF#000000##FFFFFF
##1F21541.0014.961.4014.96
#FFFFFF14.961.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002956
Deuteranopia (green-blind)
#002553
Tritanopia (blue-blind)
#012D36
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f2154;
/* rgb */ color: rgb(31, 33, 84);
/* oklch */ color: oklch(27.9% 0.091 277.1);
Tailwind
colors: {
  custom: {
    50: '#615c84',
    500: '#1f2154',
    950: '#000000',
  },
}
SCSS
$custom: #1f2154;
$custom-light: #615c84;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2154",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 84
  },
  "hsl": {
    "h": 237.736,
    "s": 46.087,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27888,
    "c": 0.0909,
    "h": 277.1
  },
  "luminance": 0.02019
}

Semantic roles & 50–950 ramp

primary
#1F2154
secondary
#898646
accent
#D152D6
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #1F2154

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

Preview Lab → · Contrast checker → · Palette generator →

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