#1F2B87#1F2B87

#1F2B87 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.152 H 270.2°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#1F2B87
RGBrgb(31, 43, 135)
HSLhsl(233, 63%, 33%)
HSVhsv(233, 77%, 53%)
CMYKcmyk(77%, 68.1%, 0%, 47.1%)
CIE-LABlab(22.89, 29.23, -52.64)
CIE-LCHlch(22.89, 60.22, 299.04°)
OKLaboklab(34.7% 0.0006 -0.1523)
OKLCHoklch(34.7% 0.152 270.2)
XYZxyz(5.8006, 3.7677, 23.3385)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B87 #877B1F
analogous
#1F5F87 #1F2B87 #471F87
triadic
#1F2B87 #871F2B #2B871F
tetradic
#1F2B87 #871F5F #877B1F #1F8747
square
#1F2B87 #871F5F #877B1F #1F8747
split-complementary
#1F2B87 #87471F #5F871F
monochromatic
#080B23 #141B55 #1F2B87 #2A3BB9 #4B5BD6

Accessibility & contrast

On white

11.98
#1F2B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F2B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B87
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B87#FFFFFF#000000##FFFFFF
##1F2B871.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8A
Deuteranopia (green-blind)
#003285
Tritanopia (blue-blind)
#004455
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2b87;
/* rgb */ color: rgb(31, 43, 135);
/* oklch */ color: oklch(34.7% 0.152 270.2);
Tailwind
colors: {
  custom: {
    50: '#6c64ab',
    500: '#1f2b87',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b87;
$custom-light: #6c64ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b87",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 135
  },
  "hsl": {
    "h": 233.077,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.347,
    "c": 0.15228,
    "h": 270.2
  },
  "luminance": 0.03768
}

Semantic roles & 50–950 ramp

primary
#1F2B87
secondary
#B8AB4A
accent
#D342E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2B87

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

Preview Lab → · Contrast checker → · Palette generator →

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