#1F2EA5#1F2EA5

#1F2EA5 is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.3% C 0.188 H 268.8°. Best body text is #FFFFFF at 10.54:1 contrast (WCAG AA passes).

Color values

HEX#1F2EA5
RGBrgb(31, 46, 165)
HSLhsl(233, 68%, 38%)
HSVhsv(233, 81%, 65%)
CMYKcmyk(81.2%, 72.1%, 0%, 35.3%)
CIE-LABlab(26.62, 38.39, -64.95)
CIE-LCHlch(26.62, 75.44, 300.58°)
OKLaboklab(38.32% -0.0039 -0.1882)
OKLCHoklch(38.32% 0.188 268.8)
XYZxyz(8.3313, 4.9609, 36.1085)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2EA5 #A5961F
analogous
#1F71A5 #1F2EA5 #531FA5
triadic
#1F2EA5 #A51F2E #2EA51F
tetradic
#1F2EA5 #A51F71 #A5961F #1FA553
square
#1F2EA5 #A51F71 #A5961F #1FA553
split-complementary
#1F2EA5 #A5531F #71A51F
monochromatic
#0C113E #152071 #1F2EA5 #2A3ED7 #5E6CE1

Accessibility & contrast

On white

10.54
#1F2EA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#1F2EA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2EA5
10.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2EA5#FFFFFF#000000##FFFFFF
##1F2EA51.0010.541.9910.54
#FFFFFF10.541.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f2ea5;
/* rgb */ color: rgb(31, 46, 165);
/* oklch */ color: oklch(38.3% 0.188 268.8);
Tailwind
colors: {
  custom: {
    50: '#7467c1',
    500: '#1f2ea5',
    950: '#000000',
  },
}
SCSS
$custom: #1f2ea5;
$custom-light: #7467c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2ea5",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 165
  },
  "hsl": {
    "h": 233.284,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38317,
    "c": 0.18821,
    "h": 268.8
  },
  "luminance": 0.04962
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2EA5

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

Preview Lab → · Contrast checker → · Palette generator →

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