#1F2271#1F2271

#1F2271 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.8% C 0.133 H 273.8°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#1F2271
RGBrgb(31, 34, 113)
HSLhsl(238, 57%, 28%)
HSVhsv(238, 73%, 44%)
CMYKcmyk(72.6%, 69.9%, 0%, 55.7%)
CIE-LABlab(18.48, 26.95, -45.89)
CIE-LCHlch(18.48, 53.22, 300.43°)
OKLaboklab(30.84% 0.0088 -0.1325)
OKLCHoklch(30.84% 0.133 273.8)
XYZxyz(4.1167, 2.6272, 15.9097)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2271 #716E1F
analogous
#1F4B71 #1F2271 #451F71
triadic
#1F2271 #711F22 #22711F
tetradic
#1F2271 #711F4B #716E1F #1F7145
square
#1F2271 #711F4B #716E1F #1F7145
split-complementary
#1F2271 #71451F #4B711F
monochromatic
#070718 #121441 #1F2271 #2C30A1 #4045CB

Accessibility & contrast

On white

13.77
#1F2271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F2271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2271
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2271#FFFFFF#000000##FFFFFF
##1F22711.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#002970
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f2271;
/* rgb */ color: rgb(31, 34, 113);
/* oklch */ color: oklch(30.8% 0.133 273.8);
Tailwind
colors: {
  custom: {
    50: '#675d9b',
    500: '#1f2271',
    950: '#000000',
  },
}
SCSS
$custom: #1f2271;
$custom-light: #675d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2271",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 237.805,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30837,
    "c": 0.13284,
    "h": 273.8
  },
  "luminance": 0.02628
}

Semantic roles & 50–950 ramp

primary
#1F2271
secondary
#A5A147
accent
#DB48E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2271

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

Preview Lab → · Contrast checker → · Palette generator →

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