#1F2DB4#1F2DB4

#1F2DB4 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 39.8% C 0.208 H 268.5°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#1F2DB4
RGBrgb(31, 45, 180)
HSLhsl(234, 71%, 41%)
HSVhsv(234, 83%, 71%)
CMYKcmyk(82.8%, 75%, 0%, 29.4%)
CIE-LABlab(28.01, 44.26, -71.66)
CIE-LCHlch(28.01, 84.22, 301.70°)
OKLaboklab(39.79% -0.0055 -0.2077)
OKLCHoklch(39.79% 0.208 268.5)
XYZxyz(9.7388, 5.4622, 43.7122)
Luminance0.0546 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2DB4 #B4A61F
analogous
#1F78B4 #1F2DB4 #5B1FB4
triadic
#1F2DB4 #B41F2D #2DB41F
tetradic
#1F2DB4 #B41F78 #B4A61F #1FB45B
square
#1F2DB4 #B41F78 #B4A61F #1FB45B
split-complementary
#1F2DB4 #B45B1F #78B41F
monochromatic
#0D134C #162080 #1F2DB4 #3444DC #6874E5

Accessibility & contrast

On white

10.04
#1F2DB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#1F2DB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2DB4
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2DB4#FFFFFF#000000##FFFFFF
##1F2DB41.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049B8
Deuteranopia (green-blind)
#003BB2
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f2db4;
/* rgb */ color: rgb(31, 45, 180);
/* oklch */ color: oklch(39.8% 0.208 268.5);
Tailwind
colors: {
  custom: {
    50: '#7867cc',
    500: '#1f2db4',
    950: '#000000',
  },
}
SCSS
$custom: #1f2db4;
$custom-light: #7867cc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2db4",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 180
  },
  "hsl": {
    "h": 234.362,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39787,
    "c": 0.20773,
    "h": 268.5
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

primary
#1F2DB4
secondary
#CBC164
accent
#DD3AED
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #1F2DB4

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

Preview Lab → · Contrast checker → · Palette generator →

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