#1F2EA1#1F2EA1

#1F2EA1 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.9% C 0.183 H 268.9°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#1F2EA1
RGBrgb(31, 46, 161)
HSLhsl(233, 68%, 38%)
HSVhsv(233, 81%, 63%)
CMYKcmyk(80.7%, 71.4%, 0%, 36.9%)
CIE-LABlab(26.21, 36.94, -63.21)
CIE-LCHlch(26.21, 73.21, 300.30°)
OKLaboklab(37.9% -0.0034 -0.1831)
OKLCHoklch(37.9% 0.183 268.9)
XYZxyz(7.9729, 4.8176, 34.2210)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2EA1 #A1921F
analogous
#1F6FA1 #1F2EA1 #511FA1
triadic
#1F2EA1 #A11F2E #2EA11F
tetradic
#1F2EA1 #A11F6F #A1921F #1FA151
square
#1F2EA1 #A11F6F #A1921F #1FA151
split-complementary
#1F2EA1 #A1511F #6FA11F
monochromatic
#0B113A #151F6E #1F2EA1 #293DD4 #5B6ADF

Accessibility & contrast

On white

10.69
#1F2EA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1F2EA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2EA1
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2EA1#FFFFFF#000000##FFFFFF
##1F2EA11.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044A4
Deuteranopia (green-blind)
#00389F
Tritanopia (blue-blind)
#004E64
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f2ea1;
/* rgb */ color: rgb(31, 46, 161);
/* oklch */ color: oklch(37.9% 0.183 268.9);
Tailwind
colors: {
  custom: {
    50: '#7367be',
    500: '#1f2ea1',
    950: '#000000',
  },
}
SCSS
$custom: #1f2ea1;
$custom-light: #7367be;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2ea1",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 161
  },
  "hsl": {
    "h": 233.077,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37895,
    "c": 0.18313,
    "h": 268.9
  },
  "luminance": 0.04819
}

Semantic roles & 50–950 ramp

primary
#1F2EA1
secondary
#C4B758
accent
#D73DEB
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1F2EA1

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

Preview Lab → · Contrast checker → · Palette generator →

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