#1F2E87#1F2E87

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

Color values

HEX#1F2E87
RGBrgb(31, 46, 135)
HSLhsl(231, 63%, 33%)
HSVhsv(231, 77%, 53%)
CMYKcmyk(77%, 65.9%, 0%, 47.1%)
CIE-LABlab(23.65, 27.22, -51.39)
CIE-LCHlch(23.65, 58.15, 297.90°)
OKLaboklab(35.26% -0.0013 -0.1486)
OKLCHoklch(35.26% 0.149 269.5)
XYZxyz(5.9137, 3.9939, 23.3762)
Luminance0.0399 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E87 #87781F
analogous
#1F6287 #1F2E87 #441F87
triadic
#1F2E87 #871F2E #2E871F
tetradic
#1F2E87 #871F62 #87781F #1F8744
square
#1F2E87 #871F62 #87781F #1F8744
split-complementary
#1F2E87 #87441F #62871F
monochromatic
#080C23 #141D55 #1F2E87 #2A3FB9 #4B5FD6

Accessibility & contrast

On white

11.67
#1F2E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2E87
11.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E87#FFFFFF#000000##FFFFFF
##1F2E871.0011.671.8011.67
#FFFFFF11.671.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8A
Deuteranopia (green-blind)
#003385
Tritanopia (blue-blind)
#004556
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2e87;
/* rgb */ color: rgb(31, 46, 135);
/* oklch */ color: oklch(35.3% 0.149 269.5);
Tailwind
colors: {
  custom: {
    50: '#6c66ab',
    500: '#1f2e87',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e87;
$custom-light: #6c66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e87",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 135
  },
  "hsl": {
    "h": 231.346,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35258,
    "c": 0.14861,
    "h": 269.5
  },
  "luminance": 0.03995
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2E87

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

Preview Lab → · Contrast checker → · Palette generator →

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