#1F2A80#1F2A80

#1F2A80 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.144 H 270.7°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#1F2A80
RGBrgb(31, 42, 128)
HSLhsl(233, 61%, 31%)
HSVhsv(233, 76%, 50%)
CMYKcmyk(75.8%, 67.2%, 0%, 49.8%)
CIE-LABlab(21.96, 27.24, -49.76)
CIE-LCHlch(21.96, 56.73, 298.70°)
OKLaboklab(33.82% 0.0018 -0.1438)
OKLCHoklch(33.82% 0.144 270.7)
XYZxyz(5.2880, 3.5052, 20.8158)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A80 #80751F
analogous
#1F5A80 #1F2A80 #441F80
triadic
#1F2A80 #801F2A #2A801F
tetradic
#1F2A80 #801F5A #80751F #1F8044
square
#1F2A80 #801F5A #80751F #1F8044
split-complementary
#1F2A80 #80441F #5A801F
monochromatic
#070A1D #131A4F #1F2A80 #2B3AB1 #4757D2

Accessibility & contrast

On white

12.34
#1F2A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A80
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A80#FFFFFF#000000##FFFFFF
##1F2A801.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#00307E
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2a80;
/* rgb */ color: rgb(31, 42, 128);
/* oklch */ color: oklch(33.8% 0.144 270.7);
Tailwind
colors: {
  custom: {
    50: '#6b63a6',
    500: '#1f2a80',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a80;
$custom-light: #6b63a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a80",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 128
  },
  "hsl": {
    "h": 233.196,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33818,
    "c": 0.14386,
    "h": 270.7
  },
  "luminance": 0.03506
}

Semantic roles & 50–950 ramp

primary
#1F2A80
secondary
#B3A748
accent
#D244E4
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#08050F
muted
#7A797F

Preview Lab

Preview with #1F2A80

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

Preview Lab → · Contrast checker → · Palette generator →

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