#1F2FA6#1F2FA6

#1F2FA6 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.188 H 268.7°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#1F2FA6
RGBrgb(31, 47, 166)
HSLhsl(233, 69%, 39%)
HSVhsv(233, 81%, 65%)
CMYKcmyk(81.3%, 71.7%, 0%, 34.9%)
CIE-LABlab(26.95, 38.13, -65.01)
CIE-LCHlch(26.95, 75.37, 300.39°)
OKLaboklab(38.59% -0.0044 -0.1883)
OKLCHoklch(38.59% 0.188 268.7)
XYZxyz(8.4621, 5.0765, 36.6029)
Luminance0.0508 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2FA6 #A6961F
analogous
#1F72A6 #1F2FA6 #521FA6
triadic
#1F2FA6 #A61F2F #2FA61F
tetradic
#1F2FA6 #A61F72 #A6961F #1FA652
square
#1F2FA6 #A61F72 #A6961F #1FA652
split-complementary
#1F2FA6 #A6521F #72A61F
monochromatic
#0C123F #152072 #1F2FA6 #2B3FD7 #5E6EE1

Accessibility & contrast

On white

10.42
#1F2FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#1F2FA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2FA6
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2FA6#FFFFFF#000000##FFFFFF
##1F2FA61.0010.422.0210.42
#FFFFFF10.421.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046AA
Deuteranopia (green-blind)
#0039A4
Tritanopia (blue-blind)
#005167
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f2fa6;
/* rgb */ color: rgb(31, 47, 166);
/* oklch */ color: oklch(38.6% 0.188 268.7);
Tailwind
colors: {
  custom: {
    50: '#7468c2',
    500: '#1f2fa6',
    950: '#000000',
  },
}
SCSS
$custom: #1f2fa6;
$custom-light: #7468c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2fa6",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 166
  },
  "hsl": {
    "h": 232.889,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38585,
    "c": 0.1884,
    "h": 268.7
  },
  "luminance": 0.05078
}

Semantic roles & 50–950 ramp

primary
#1F2FA6
secondary
#C5B95B
accent
#D73CEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1F2FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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