#1F2280#1F2280

#1F2280 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.153 H 272.5°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#1F2280
RGBrgb(31, 34, 128)
HSLhsl(238, 61%, 31%)
HSVhsv(238, 76%, 50%)
CMYKcmyk(75.8%, 73.4%, 0%, 49.8%)
CIE-LABlab(20.02, 32.50, -52.96)
CIE-LCHlch(20.02, 62.14, 301.54°)
OKLaboklab(32.41% 0.0068 -0.1532)
OKLCHoklch(32.41% 0.153 272.5)
XYZxyz(5.0321, 2.9934, 20.7305)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2280 #807D1F
analogous
#1F5280 #1F2280 #4C1F80
triadic
#1F2280 #801F22 #22801F
tetradic
#1F2280 #801F52 #807D1F #1F804C
square
#1F2280 #801F52 #807D1F #1F804C
split-complementary
#1F2280 #804C1F #52801F
monochromatic
#07081D #13154F #1F2280 #2B2FB1 #474BD2

Accessibility & contrast

On white

13.13
#1F2280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#1F2280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2280
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2280#FFFFFF#000000##FFFFFF
##1F22801.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003583
Deuteranopia (green-blind)
#002C7E
Tritanopia (blue-blind)
#003C4E
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #1f2280;
/* rgb */ color: rgb(31, 34, 128);
/* oklch */ color: oklch(32.4% 0.153 272.5);
Tailwind
colors: {
  custom: {
    50: '#6b5ea6',
    500: '#1f2280',
    950: '#000000',
  },
}
SCSS
$custom: #1f2280;
$custom-light: #6b5ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2280",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 128
  },
  "hsl": {
    "h": 238.144,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32408,
    "c": 0.15337,
    "h": 272.5
  },
  "luminance": 0.02994
}

Semantic roles & 50–950 ramp

primary
#1F2280
secondary
#B3B048
accent
#DF44E4
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #1F2280

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

Preview Lab → · Contrast checker → · Palette generator →

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