#1F2AA1#1F2AA1

#1F2AA1 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.187 H 269.4°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#1F2AA1
RGBrgb(31, 42, 161)
HSLhsl(235, 68%, 38%)
HSVhsv(235, 81%, 63%)
CMYKcmyk(80.7%, 73.9%, 0%, 36.9%)
CIE-LABlab(25.32, 39.40, -64.67)
CIE-LCHlch(25.32, 75.73, 301.35°)
OKLaboklab(37.26% -0.0018 -0.1874)
OKLCHoklch(37.26% 0.187 269.4)
XYZxyz(7.8239, 4.5195, 34.1713)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2AA1 #A1961F
analogous
#1F6BA1 #1F2AA1 #551FA1
triadic
#1F2AA1 #A11F2A #2AA11F
tetradic
#1F2AA1 #A11F6B #A1961F #1FA155
square
#1F2AA1 #A11F6B #A1961F #1FA155
split-complementary
#1F2AA1 #A1551F #6BA11F
monochromatic
#0B0F3A #151D6E #1F2AA1 #2937D4 #5B66DF

Accessibility & contrast

On white

11.03
#1F2AA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1F2AA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2AA1
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2AA1#FFFFFF#000000##FFFFFF
##1F2AA11.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004C63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f2aa1;
/* rgb */ color: rgb(31, 42, 161);
/* oklch */ color: oklch(37.3% 0.187 269.4);
Tailwind
colors: {
  custom: {
    50: '#7364be',
    500: '#1f2aa1',
    950: '#000000',
  },
}
SCSS
$custom: #1f2aa1;
$custom-light: #7364be;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2aa1",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 161
  },
  "hsl": {
    "h": 234.923,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37256,
    "c": 0.18737,
    "h": 269.4
  },
  "luminance": 0.0452
}

Semantic roles & 50–950 ramp

primary
#1F2AA1
secondary
#C4BA58
accent
#DC3DEB
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #1F2AA1

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

Preview Lab → · Contrast checker → · Palette generator →

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