#1F2B80#1F2B80

#1F2B80 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.143 H 270.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#1F2B80
RGBrgb(31, 43, 128)
HSLhsl(233, 61%, 31%)
HSVhsv(233, 76%, 50%)
CMYKcmyk(75.8%, 66.4%, 0%, 49.8%)
CIE-LABlab(22.22, 26.56, -49.34)
CIE-LCHlch(22.22, 56.04, 298.30°)
OKLaboklab(34.01% 0.0011 -0.1426)
OKLCHoklch(34.01% 0.143 270.4)
XYZxyz(5.3239, 3.5770, 20.8277)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B80 #80741F
analogous
#1F5B80 #1F2B80 #431F80
triadic
#1F2B80 #801F2B #2B801F
tetradic
#1F2B80 #801F5B #80741F #1F8043
square
#1F2B80 #801F5B #80741F #1F8043
split-complementary
#1F2B80 #80431F #5B801F
monochromatic
#070A1D #131A4F #1F2B80 #2B3CB1 #4758D2

Accessibility & contrast

On white

12.24
#1F2B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F2B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B80
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B80#FFFFFF#000000##FFFFFF
##1F2B801.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A83
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#004151
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2b80;
/* rgb */ color: rgb(31, 43, 128);
/* oklch */ color: oklch(34.0% 0.143 270.4);
Tailwind
colors: {
  custom: {
    50: '#6a64a6',
    500: '#1f2b80',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b80;
$custom-light: #6a64a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b80",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 128
  },
  "hsl": {
    "h": 232.577,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34007,
    "c": 0.14261,
    "h": 270.4
  },
  "luminance": 0.03578
}

Semantic roles & 50–950 ramp

primary
#1F2B80
secondary
#B3A648
accent
#D044E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1F2B80

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

Preview Lab → · Contrast checker → · Palette generator →

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