#1F2D80#1F2D80

#1F2D80 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.4% C 0.140 H 269.9°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#1F2D80
RGBrgb(31, 45, 128)
HSLhsl(231, 61%, 31%)
HSVhsv(231, 76%, 50%)
CMYKcmyk(75.8%, 64.8%, 0%, 49.8%)
CIE-LABlab(22.74, 25.20, -48.48)
CIE-LCHlch(22.74, 54.64, 297.46°)
OKLaboklab(34.39% -0.0003 -0.1401)
OKLCHoklch(34.39% 0.14 269.9)
XYZxyz(5.3984, 3.7260, 20.8526)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D80 #80721F
analogous
#1F5D80 #1F2D80 #411F80
triadic
#1F2D80 #801F2D #2D801F
tetradic
#1F2D80 #801F5D #80721F #1F8041
square
#1F2D80 #801F5D #80721F #1F8041
split-complementary
#1F2D80 #80411F #5D801F
monochromatic
#070A1D #131C4F #1F2D80 #2B3EB1 #475BD2

Accessibility & contrast

On white

12.03
#1F2D80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F2D80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D80
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D80#FFFFFF#000000##FFFFFF
##1F2D801.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B83
Deuteranopia (green-blind)
#00327E
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2d80;
/* rgb */ color: rgb(31, 45, 128);
/* oklch */ color: oklch(34.4% 0.140 269.9);
Tailwind
colors: {
  custom: {
    50: '#6a65a6',
    500: '#1f2d80',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d80;
$custom-light: #6a65a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d80",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 128
  },
  "hsl": {
    "h": 231.34,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.34392,
    "c": 0.14008,
    "h": 269.9
  },
  "luminance": 0.03727
}

Semantic roles & 50–950 ramp

primary
#1F2D80
secondary
#B3A348
accent
#CD44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1F2D80

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

Preview Lab → · Contrast checker → · Palette generator →

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