#1F2DA7#1F2DA7

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

Color values

HEX#1F2DA7
RGBrgb(31, 45, 167)
HSLhsl(234, 69%, 39%)
HSVhsv(234, 81%, 65%)
CMYKcmyk(81.4%, 73.1%, 0%, 34.5%)
CIE-LABlab(26.61, 39.71, -66.17)
CIE-LCHlch(26.61, 77.18, 300.97°)
OKLaboklab(38.37% -0.0037 -0.1917)
OKLCHoklch(38.37% 0.192 268.9)
XYZxyz(8.4761, 4.9571, 37.0618)
Luminance0.0496 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2DA7 #A7991F
analogous
#1F71A7 #1F2DA7 #551FA7
triadic
#1F2DA7 #A71F2D #2DA71F
tetradic
#1F2DA7 #A71F71 #A7991F #1FA755
square
#1F2DA7 #A71F71 #A7991F #1FA755
split-complementary
#1F2DA7 #A7551F #71A71F
monochromatic
#0C1140 #151F73 #1F2DA7 #2B3DD8 #5F6CE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F2DA7#FFFFFF#000000##FFFFFF
##1F2DA71.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)
#0046AB
Deuteranopia (green-blind)
#0038A5
Tritanopia (blue-blind)
#005067
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f2da7;
/* rgb */ color: rgb(31, 45, 167);
/* oklch */ color: oklch(38.4% 0.192 268.9);
Tailwind
colors: {
  custom: {
    50: '#7567c2',
    500: '#1f2da7',
    950: '#000000',
  },
}
SCSS
$custom: #1f2da7;
$custom-light: #7567c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2da7",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 233.824,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38372,
    "c": 0.19177,
    "h": 268.9
  },
  "luminance": 0.04958
}

Semantic roles & 50–950 ramp

primary
#1F2DA7
secondary
#C6BB5C
accent
#D93CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1F2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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