#1F2FA1#1F2FA1

#1F2FA1 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.1% C 0.182 H 268.8°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#1F2FA1
RGBrgb(31, 47, 161)
HSLhsl(233, 68%, 38%)
HSVhsv(233, 81%, 63%)
CMYKcmyk(80.7%, 70.8%, 0%, 36.9%)
CIE-LABlab(26.44, 36.31, -62.83)
CIE-LCHlch(26.44, 72.57, 300.03°)
OKLaboklab(38.06% -0.0039 -0.182)
OKLCHoklch(38.06% 0.182 268.8)
XYZxyz(8.0124, 4.8966, 34.2342)
Luminance0.0490 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2FA1 #A1911F
analogous
#1F70A1 #1F2FA1 #501FA1
triadic
#1F2FA1 #A11F2F #2FA11F
tetradic
#1F2FA1 #A11F70 #A1911F #1FA150
square
#1F2FA1 #A11F70 #A1911F #1FA150
split-complementary
#1F2FA1 #A1501F #70A11F
monochromatic
#0B113A #15206E #1F2FA1 #293ED4 #5B6BDF

Accessibility & contrast

On white

10.61
#1F2FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#1F2FA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2FA1
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2FA1#FFFFFF#000000##FFFFFF
##1F2FA11.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A4
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f2fa1;
/* rgb */ color: rgb(31, 47, 161);
/* oklch */ color: oklch(38.1% 0.182 268.8);
Tailwind
colors: {
  custom: {
    50: '#7368be',
    500: '#1f2fa1',
    950: '#000000',
  },
}
SCSS
$custom: #1f2fa1;
$custom-light: #7368be;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2fa1",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 161
  },
  "hsl": {
    "h": 232.615,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.3806,
    "c": 0.18204,
    "h": 268.8
  },
  "luminance": 0.04898
}

Semantic roles & 50–950 ramp

primary
#1F2FA1
secondary
#C4B658
accent
#D53DEB
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1F2FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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