#1F2155#1F2155

#1F2155 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 28.0% C 0.092 H 276.9°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#1F2155
RGBrgb(31, 33, 85)
HSLhsl(238, 47%, 23%)
HSVhsv(238, 64%, 33%)
CMYKcmyk(63.5%, 61.2%, 0%, 66.7%)
CIE-LABlab(15.67, 16.96, -32.00)
CIE-LCHlch(15.67, 36.22, 297.92°)
OKLaboklab(27.98% 0.0112 -0.0918)
OKLCHoklch(27.98% 0.092 276.9)
XYZxyz(2.7481, 2.0347, 8.8405)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2155 #55531F
analogous
#1F3C55 #1F2155 #381F55
triadic
#1F2155 #551F21 #21551F
tetradic
#1F2155 #551F3C #55531F #1F5538
square
#1F2155 #551F3C #55531F #1F5538
split-complementary
#1F2155 #55381F #3C551F
monochromatic
#080916 #0F1028 #1F2155 #2F3282 #4044AF

Accessibility & contrast

On white

14.93
#1F2155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#1F2155 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2155
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2155#FFFFFF#000000##FFFFFF
##1F21551.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#002554
Tritanopia (blue-blind)
#002D37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #1f2155;
/* rgb */ color: rgb(31, 33, 85);
/* oklch */ color: oklch(28.0% 0.092 276.9);
Tailwind
colors: {
  custom: {
    50: '#615c85',
    500: '#1f2155',
    950: '#000000',
  },
}
SCSS
$custom: #1f2155;
$custom-light: #615c85;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2155",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 237.778,
    "s": 46.552,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27976,
    "c": 0.09249,
    "h": 276.9
  },
  "luminance": 0.02035
}

Semantic roles & 50–950 ramp

primary
#1F2155
secondary
#8A8746
accent
#D152D6
background
#F5F5F8
surface
#EAE9EF
border
#C6C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #1F2155

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

Preview Lab → · Contrast checker → · Palette generator →

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