#1F2DA1#1F2DA1

#1F2DA1 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.7% C 0.184 H 269.1°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#1F2DA1
RGBrgb(31, 45, 161)
HSLhsl(234, 68%, 38%)
HSVhsv(234, 81%, 63%)
CMYKcmyk(80.7%, 72%, 0%, 36.9%)
CIE-LABlab(25.98, 37.56, -63.58)
CIE-LCHlch(25.98, 73.85, 300.58°)
OKLaboklab(37.73% -0.003 -0.1842)
OKLCHoklch(37.73% 0.184 269.1)
XYZxyz(7.9343, 4.7404, 34.2081)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2DA1 #A1931F
analogous
#1F6EA1 #1F2DA1 #521FA1
triadic
#1F2DA1 #A11F2D #2DA11F
tetradic
#1F2DA1 #A11F6E #A1931F #1FA152
square
#1F2DA1 #A11F6E #A1931F #1FA152
split-complementary
#1F2DA1 #A1521F #6EA11F
monochromatic
#0B103A #151F6E #1F2DA1 #293BD4 #5B69DF

Accessibility & contrast

On white

10.78
#1F2DA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1F2DA1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2DA1
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2DA1#FFFFFF#000000##FFFFFF
##1F2DA11.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2da1;
/* rgb */ color: rgb(31, 45, 161);
/* oklch */ color: oklch(37.7% 0.184 269.1);
Tailwind
colors: {
  custom: {
    50: '#7366be',
    500: '#1f2da1',
    950: '#000000',
  },
}
SCSS
$custom: #1f2da1;
$custom-light: #7366be;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2da1",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 161
  },
  "hsl": {
    "h": 233.538,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37731,
    "c": 0.18421,
    "h": 269.1
  },
  "luminance": 0.04741
}

Semantic roles & 50–950 ramp

primary
#1F2DA1
secondary
#C4B858
accent
#D83DEB
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1F2DA1

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

Preview Lab → · Contrast checker → · Palette generator →

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