#1F2FA7#1F2FA7

#1F2FA7 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.7% C 0.190 H 268.6°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#1F2FA7
RGBrgb(31, 47, 167)
HSLhsl(233, 69%, 39%)
HSVhsv(233, 81%, 65%)
CMYKcmyk(81.4%, 71.9%, 0%, 34.5%)
CIE-LABlab(27.06, 38.49, -65.44)
CIE-LCHlch(27.06, 75.92, 300.46°)
OKLaboklab(38.69% -0.0045 -0.1896)
OKLCHoklch(38.69% 0.19 268.6)
XYZxyz(8.5542, 5.1134, 37.0879)
Luminance0.0511 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2FA7 #A7971F
analogous
#1F73A7 #1F2FA7 #531FA7
triadic
#1F2FA7 #A71F2F #2FA71F
tetradic
#1F2FA7 #A71F73 #A7971F #1FA753
square
#1F2FA7 #A71F73 #A7971F #1FA753
split-complementary
#1F2FA7 #A7531F #73A71F
monochromatic
#0C1240 #152073 #1F2FA7 #2B40D8 #5F6EE1

Accessibility & contrast

On white

10.38
#1F2FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2FA7
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2FA7#FFFFFF#000000##FFFFFF
##1F2FA71.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2fa7;
/* rgb */ color: rgb(31, 47, 167);
/* oklch */ color: oklch(38.7% 0.190 268.6);
Tailwind
colors: {
  custom: {
    50: '#7468c2',
    500: '#1f2fa7',
    950: '#000000',
  },
}
SCSS
$custom: #1f2fa7;
$custom-light: #7468c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2fa7",
  "rgb": {
    "r": 31,
    "g": 47,
    "b": 167
  },
  "hsl": {
    "h": 232.941,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.3869,
    "c": 0.18966,
    "h": 268.6
  },
  "luminance": 0.05114
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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