#1F2FB4#1F2FB4

#1F2FB4 is a dark, highly saturated blue. Relative luminance 0.056; OKLCH L 40.1% C 0.206 H 268.3°. Best body text is #FFFFFF at 9.89:1 contrast (WCAG AA passes).

Color values

HEX#1F2FB4
RGBrgb(31, 47, 180)
HSLhsl(234, 71%, 41%)
HSVhsv(234, 83%, 71%)
CMYKcmyk(82.8%, 73.9%, 0%, 29.4%)
CIE-LABlab(28.43, 43.09, -70.97)
CIE-LCHlch(28.43, 83.03, 301.27°)
OKLaboklab(40.08% -0.0061 -0.2057)
OKLCHoklch(40.08% 0.206 268.3)
XYZxyz(9.8170, 5.6184, 43.7382)
Luminance0.0562 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2FB4 #B4A41F
analogous
#1F7AB4 #1F2FB4 #5A1FB4
triadic
#1F2FB4 #B41F2F #2FB41F
tetradic
#1F2FB4 #B41F7A #B4A41F #1FB45A
square
#1F2FB4 #B41F7A #B4A41F #1FB45A
split-complementary
#1F2FB4 #B45A1F #7AB41F
monochromatic
#0D144C #162180 #1F2FB4 #3446DC #6876E5

Accessibility & contrast

On white

9.89
#1F2FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1F2FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2FB4
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2FB4#FFFFFF#000000##FFFFFF
##1F2FB41.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#003CB2
Tritanopia (blue-blind)
#00566F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f2fb4;
/* rgb */ color: rgb(31, 47, 180);
/* oklch */ color: oklch(40.1% 0.206 268.3);
Tailwind
colors: {
  custom: {
    50: '#7869cc',
    500: '#1f2fb4',
    950: '#000000',
  },
}
SCSS
$custom: #1f2fb4;
$custom-light: #7869cc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2fb4",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 180
  },
  "hsl": {
    "h": 233.557,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.40083,
    "c": 0.20577,
    "h": 268.3
  },
  "luminance": 0.0562
}

Semantic roles & 50–950 ramp

primary
#1F2FB4
secondary
#CBC064
accent
#DA3AED
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #1F2FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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