#1F2896#1F2896

#1F2896 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.8% C 0.176 H 270.2°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#1F2896
RGBrgb(31, 40, 150)
HSLhsl(235, 66%, 35%)
HSVhsv(235, 79%, 59%)
CMYKcmyk(79.3%, 73.3%, 0%, 41.2%)
CIE-LABlab(23.70, 36.70, -60.61)
CIE-LCHlch(23.70, 70.86, 301.20°)
OKLaboklab(35.75% 0.0006 -0.1755)
OKLCHoklch(35.75% 0.176 270.2)
XYZxyz(6.8270, 4.0101, 29.2625)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2896 #968D1F
analogous
#1F6396 #1F2896 #511F96
triadic
#1F2896 #961F28 #28961F
tetradic
#1F2896 #961F63 #968D1F #1F9651
square
#1F2896 #961F63 #968D1F #1F9651
split-complementary
#1F2896 #96511F #63961F
monochromatic
#0A0D31 #151A63 #1F2896 #2936C9 #545EDC

Accessibility & contrast

On white

11.65
#1F2896 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F2896 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2896
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2896#FFFFFF#000000##FFFFFF
##1F28961.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E99
Deuteranopia (green-blind)
#003394
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2896;
/* rgb */ color: rgb(31, 40, 150);
/* oklch */ color: oklch(35.8% 0.176 270.2);
Tailwind
colors: {
  custom: {
    50: '#7163b6',
    500: '#1f2896',
    950: '#000000',
  },
}
SCSS
$custom: #1f2896;
$custom-light: #7163b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2896",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 150
  },
  "hsl": {
    "h": 235.462,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.3575,
    "c": 0.17553,
    "h": 270.2
  },
  "luminance": 0.04011
}

Semantic roles & 50–950 ramp

primary
#1F2896
secondary
#BFB752
accent
#DC3FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2896

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

Preview Lab → · Contrast checker → · Palette generator →

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