#1F2F84#1F2F84

#1F2F84 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.2% C 0.143 H 269.2°. Best body text is #FFFFFF at 11.68:1 contrast (WCAG AA passes).

Color values

HEX#1F2F84
RGBrgb(31, 47, 132)
HSLhsl(230, 62%, 32%)
HSVhsv(230, 77%, 52%)
CMYKcmyk(76.5%, 64.4%, 0%, 48.2%)
CIE-LABlab(23.64, 25.37, -49.54)
CIE-LCHlch(23.64, 55.66, 297.12°)
OKLaboklab(35.16% -0.0019 -0.1432)
OKLCHoklch(35.16% 0.143 269.2)
XYZxyz(5.7450, 3.9897, 22.2926)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2F84 #84741F
analogous
#1F6284 #1F2F84 #421F84
triadic
#1F2F84 #841F2F #2F841F
tetradic
#1F2F84 #841F62 #84741F #1F8442
square
#1F2F84 #841F62 #84741F #1F8442
split-complementary
#1F2F84 #84421F #62841F
monochromatic
#080C21 #131D52 #1F2F84 #2B41B6 #495FD4

Accessibility & contrast

On white

11.68
#1F2F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F2F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2F84
11.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2F84#FFFFFF#000000##FFFFFF
##1F2F841.0011.681.8011.68
#FFFFFF11.681.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D87
Deuteranopia (green-blind)
#003482
Tritanopia (blue-blind)
#004555
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2f84;
/* rgb */ color: rgb(31, 47, 132);
/* oklch */ color: oklch(35.2% 0.143 269.2);
Tailwind
colors: {
  custom: {
    50: '#6b67a9',
    500: '#1f2f84',
    950: '#000000',
  },
}
SCSS
$custom: #1f2f84;
$custom-light: #6b67a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2f84",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 230.495,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.35163,
    "c": 0.14317,
    "h": 269.2
  },
  "luminance": 0.0399
}

Semantic roles & 50–950 ramp

primary
#1F2F84
secondary
#B7A548
accent
#CB43E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080610
muted
#7A7A7F

Preview Lab

Preview with #1F2F84

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

Preview Lab → · Contrast checker → · Palette generator →

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