#1F2E88#1F2E88

#1F2E88 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.150 H 269.5°. Best body text is #FFFFFF at 11.64:1 contrast (WCAG AA passes).

Color values

HEX#1F2E88
RGBrgb(31, 46, 136)
HSLhsl(231, 63%, 33%)
HSVhsv(231, 77%, 53%)
CMYKcmyk(77.2%, 66.2%, 0%, 46.7%)
CIE-LABlab(23.74, 27.60, -51.86)
CIE-LCHlch(23.74, 58.75, 298.02°)
OKLaboklab(35.36% -0.0014 -0.15)
OKLCHoklch(35.36% 0.15 269.5)
XYZxyz(5.9845, 4.0222, 23.7487)
Luminance0.0402 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E88 #88791F
analogous
#1F6288 #1F2E88 #451F88
triadic
#1F2E88 #881F2E #2E881F
tetradic
#1F2E88 #881F62 #88791F #1F8845
square
#1F2E88 #881F62 #88791F #1F8845
split-complementary
#1F2E88 #88451F #62881F
monochromatic
#080C24 #141D56 #1F2E88 #2A3FBA #4B5FD6

Accessibility & contrast

On white

11.64
#1F2E88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2E88
11.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E88#FFFFFF#000000##FFFFFF
##1F2E881.0011.641.8011.64
#FFFFFF11.641.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8B
Deuteranopia (green-blind)
#003486
Tritanopia (blue-blind)
#004656
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2e88;
/* rgb */ color: rgb(31, 46, 136);
/* oklch */ color: oklch(35.4% 0.150 269.5);
Tailwind
colors: {
  custom: {
    50: '#6c66ac',
    500: '#1f2e88',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e88;
$custom-light: #6c66ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e88",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 136
  },
  "hsl": {
    "h": 231.429,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35356,
    "c": 0.14999,
    "h": 269.5
  },
  "luminance": 0.04023
}

Semantic roles & 50–950 ramp

primary
#1F2E88
secondary
#B9A94A
accent
#CE42E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F2E88

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

Preview Lab → · Contrast checker → · Palette generator →

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