#1F2180#1F2180

#1F2180 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.154 H 272.7°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#1F2180
RGBrgb(31, 33, 128)
HSLhsl(239, 61%, 31%)
HSVhsv(239, 76%, 50%)
CMYKcmyk(75.8%, 74.2%, 0%, 49.8%)
CIE-LABlab(19.79, 33.13, -53.33)
CIE-LCHlch(19.79, 62.79, 301.85°)
OKLaboklab(32.25% 0.0073 -0.1543)
OKLCHoklch(32.25% 0.154 272.7)
XYZxyz(5.0039, 2.9370, 20.7211)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2180 #807E1F
analogous
#1F5180 #1F2180 #4D1F80
triadic
#1F2180 #801F21 #21801F
tetradic
#1F2180 #801F51 #807E1F #1F804D
square
#1F2180 #801F51 #807E1F #1F804D
split-complementary
#1F2180 #804D1F #51801F
monochromatic
#07081D #13144F #1F2180 #2B2EB1 #474AD2

Accessibility & contrast

On white

13.23
#1F2180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#1F2180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2180
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2180#FFFFFF#000000##FFFFFF
##1F21801.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2180;
/* rgb */ color: rgb(31, 33, 128);
/* oklch */ color: oklch(32.2% 0.154 272.7);
Tailwind
colors: {
  custom: {
    50: '#6b5da6',
    500: '#1f2180',
    950: '#000000',
  },
}
SCSS
$custom: #1f2180;
$custom-light: #6b5da6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2180",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 128
  },
  "hsl": {
    "h": 238.763,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32245,
    "c": 0.15447,
    "h": 272.7
  },
  "luminance": 0.02938
}

Semantic roles & 50–950 ramp

primary
#1F2180
secondary
#B3B148
accent
#E144E4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #1F2180

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

Preview Lab → · Contrast checker → · Palette generator →

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