#1F2D87#1F2D87

#1F2D87 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.150 H 269.7°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#1F2D87
RGBrgb(31, 45, 135)
HSLhsl(232, 63%, 33%)
HSVhsv(232, 77%, 53%)
CMYKcmyk(77%, 66.7%, 0%, 47.1%)
CIE-LABlab(23.39, 27.89, -51.81)
CIE-LCHlch(23.39, 58.84, 298.29°)
OKLaboklab(35.07% -0.0007 -0.1498)
OKLCHoklch(35.07% 0.15 269.7)
XYZxyz(5.8751, 3.9167, 23.3633)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D87 #87791F
analogous
#1F6187 #1F2D87 #451F87
triadic
#1F2D87 #871F2D #2D871F
tetradic
#1F2D87 #871F61 #87791F #1F8745
square
#1F2D87 #871F61 #87791F #1F8745
split-complementary
#1F2D87 #87451F #61871F
monochromatic
#080C23 #141C55 #1F2D87 #2A3EB9 #4B5DD6

Accessibility & contrast

On white

11.78
#1F2D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F2D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D87
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D87#FFFFFF#000000##FFFFFF
##1F2D871.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2d87;
/* rgb */ color: rgb(31, 45, 135);
/* oklch */ color: oklch(35.1% 0.150 269.7);
Tailwind
colors: {
  custom: {
    50: '#6c66ab',
    500: '#1f2d87',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d87;
$custom-light: #6c66ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d87",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 135
  },
  "hsl": {
    "h": 231.923,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.3507,
    "c": 0.14984,
    "h": 269.7
  },
  "luminance": 0.03917
}

Semantic roles & 50–950 ramp

primary
#1F2D87
secondary
#B8A94A
accent
#D042E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2D87

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

Preview Lab → · Contrast checker → · Palette generator →

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