#1F2FA8#1F2FA8

#1F2FA8 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.191 H 268.6°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#1F2FA8
RGBrgb(31, 47, 168)
HSLhsl(233, 69%, 39%)
HSVhsv(233, 82%, 66%)
CMYKcmyk(81.5%, 72%, 0%, 34.1%)
CIE-LABlab(27.16, 38.85, -65.87)
CIE-LCHlch(27.16, 76.47, 300.53°)
OKLaboklab(38.8% -0.0046 -0.1909)
OKLCHoklch(38.8% 0.191 268.6)
XYZxyz(8.6470, 5.1505, 37.5766)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2FA8 #A8981F
analogous
#1F74A8 #1F2FA8 #541FA8
triadic
#1F2FA8 #A81F2F #2FA81F
tetradic
#1F2FA8 #A81F74 #A8981F #1FA854
square
#1F2FA8 #A81F74 #A8981F #1FA854
split-complementary
#1F2FA8 #A8541F #74A81F
monochromatic
#0C1241 #152174 #1F2FA8 #2C40D8 #606FE2

Accessibility & contrast

On white

10.34
#1F2FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1F2FA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2FA8
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2FA8#FFFFFF#000000##FFFFFF
##1F2FA81.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#0039A6
Tritanopia (blue-blind)
#005168
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f2fa8;
/* rgb */ color: rgb(31, 47, 168);
/* oklch */ color: oklch(38.8% 0.191 268.6);
Tailwind
colors: {
  custom: {
    50: '#7568c3',
    500: '#1f2fa8',
    950: '#000000',
  },
}
SCSS
$custom: #1f2fa8;
$custom-light: #7568c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2fa8",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 168
  },
  "hsl": {
    "h": 232.993,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38796,
    "c": 0.19093,
    "h": 268.6
  },
  "luminance": 0.05151
}

Semantic roles & 50–950 ramp

primary
#1F2FA8
secondary
#C6BA5D
accent
#D73CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1F2FA8

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

Preview Lab → · Contrast checker → · Palette generator →

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