#1F2EB4#1F2EB4

#1F2EB4 is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 39.9% C 0.207 H 268.4°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#1F2EB4
RGBrgb(31, 46, 180)
HSLhsl(234, 71%, 41%)
HSVhsv(234, 83%, 71%)
CMYKcmyk(82.8%, 74.4%, 0%, 29.4%)
CIE-LABlab(28.22, 43.68, -71.31)
CIE-LCHlch(28.22, 83.63, 301.49°)
OKLaboklab(39.93% -0.0058 -0.2067)
OKLCHoklch(39.93% 0.207 268.4)
XYZxyz(9.7774, 5.5394, 43.7251)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2EB4 #B4A51F
analogous
#1F79B4 #1F2EB4 #5B1FB4
triadic
#1F2EB4 #B41F2E #2EB41F
tetradic
#1F2EB4 #B41F79 #B4A51F #1FB45B
square
#1F2EB4 #B41F79 #B4A51F #1FB45B
split-complementary
#1F2EB4 #B45B1F #79B41F
monochromatic
#0D134C #162180 #1F2EB4 #3445DC #6875E5

Accessibility & contrast

On white

9.96
#1F2EB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1F2EB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2EB4
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2EB4#FFFFFF#000000##FFFFFF
##1F2EB41.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AB8
Deuteranopia (green-blind)
#003BB2
Tritanopia (blue-blind)
#00556F
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f2eb4;
/* rgb */ color: rgb(31, 46, 180);
/* oklch */ color: oklch(39.9% 0.207 268.4);
Tailwind
colors: {
  custom: {
    50: '#7868cc',
    500: '#1f2eb4',
    950: '#000000',
  },
}
SCSS
$custom: #1f2eb4;
$custom-light: #7868cc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2eb4",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 180
  },
  "hsl": {
    "h": 233.96,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.39934,
    "c": 0.20676,
    "h": 268.4
  },
  "luminance": 0.05541
}

Semantic roles & 50–950 ramp

primary
#1F2EB4
secondary
#CBC064
accent
#DB3AED
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0614
muted
#7C7A82

Preview Lab

Preview with #1F2EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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