#1F2A87#1F2A87

#1F2A87 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.153 H 270.5°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#1F2A87
RGBrgb(31, 42, 135)
HSLhsl(234, 63%, 33%)
HSVhsv(234, 77%, 53%)
CMYKcmyk(77%, 68.9%, 0%, 47.1%)
CIE-LABlab(22.64, 29.90, -53.05)
CIE-LCHlch(22.64, 60.90, 299.40°)
OKLaboklab(34.52% 0.0012 -0.1535)
OKLCHoklch(34.52% 0.153 270.5)
XYZxyz(5.7647, 3.6959, 23.3265)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A87 #877C1F
analogous
#1F5E87 #1F2A87 #481F87
triadic
#1F2A87 #871F2A #2A871F
tetradic
#1F2A87 #871F5E #877C1F #1F8748
square
#1F2A87 #871F5E #877C1F #1F8748
split-complementary
#1F2A87 #87481F #5E871F
monochromatic
#080B23 #141B55 #1F2A87 #2A39B9 #4B59D6

Accessibility & contrast

On white

12.07
#1F2A87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F2A87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A87
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A87#FFFFFF#000000##FFFFFF
##1F2A871.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8A
Deuteranopia (green-blind)
#003185
Tritanopia (blue-blind)
#004354
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2a87;
/* rgb */ color: rgb(31, 42, 135);
/* oklch */ color: oklch(34.5% 0.153 270.5);
Tailwind
colors: {
  custom: {
    50: '#6c63ab',
    500: '#1f2a87',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a87;
$custom-light: #6c63ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a87",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 135
  },
  "hsl": {
    "h": 233.654,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34518,
    "c": 0.15348,
    "h": 270.5
  },
  "luminance": 0.03697
}

Semantic roles & 50–950 ramp

primary
#1F2A87
secondary
#B8AD4A
accent
#D442E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2A87

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

Preview Lab → · Contrast checker → · Palette generator →

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