#1F2DA5#1F2DA5

#1F2DA5 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.2% C 0.189 H 268.9°. Best body text is #FFFFFF at 10.62:1 contrast (WCAG AA passes).

Color values

HEX#1F2DA5
RGBrgb(31, 45, 165)
HSLhsl(234, 68%, 38%)
HSVhsv(234, 81%, 65%)
CMYKcmyk(81.2%, 72.7%, 0%, 35.3%)
CIE-LABlab(26.40, 39.00, -65.31)
CIE-LCHlch(26.40, 76.07, 300.84°)
OKLaboklab(38.16% -0.0035 -0.1892)
OKLCHoklch(38.16% 0.189 268.9)
XYZxyz(8.2927, 4.8837, 36.0956)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2DA5 #A5971F
analogous
#1F70A5 #1F2DA5 #541FA5
triadic
#1F2DA5 #A51F2D #2DA51F
tetradic
#1F2DA5 #A51F70 #A5971F #1FA554
square
#1F2DA5 #A51F70 #A5971F #1FA554
split-complementary
#1F2DA5 #A5541F #70A51F
monochromatic
#0C113E #151F71 #1F2DA5 #2A3CD7 #5E6BE1

Accessibility & contrast

On white

10.62
#1F2DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#1F2DA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2DA5
10.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2DA5#FFFFFF#000000##FFFFFF
##1F2DA51.0010.621.9810.62
#FFFFFF10.621.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A9
Deuteranopia (green-blind)
#0038A3
Tritanopia (blue-blind)
#004F66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f2da5;
/* rgb */ color: rgb(31, 45, 165);
/* oklch */ color: oklch(38.2% 0.189 268.9);
Tailwind
colors: {
  custom: {
    50: '#7467c1',
    500: '#1f2da5',
    950: '#000000',
  },
}
SCSS
$custom: #1f2da5;
$custom-light: #7467c1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2da5",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 233.731,
    "s": 68.367,
    "l": 38.431
  },
  "oklch": {
    "l": 0.38157,
    "c": 0.18926,
    "h": 268.9
  },
  "luminance": 0.04885
}

Semantic roles & 50–950 ramp

primary
#1F2DA5
secondary
#C5BA5B
accent
#D93DEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1F2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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