#1F2D88#1F2D88

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

Color values

HEX#1F2D88
RGBrgb(31, 45, 136)
HSLhsl(232, 63%, 33%)
HSVhsv(232, 77%, 53%)
CMYKcmyk(77.2%, 66.9%, 0%, 46.7%)
CIE-LABlab(23.49, 28.28, -52.28)
CIE-LCHlch(23.49, 59.44, 298.40°)
OKLaboklab(35.17% -0.0007 -0.1512)
OKLCHoklch(35.17% 0.151 269.7)
XYZxyz(5.9459, 3.9450, 23.7359)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D88 #887A1F
analogous
#1F6188 #1F2D88 #451F88
triadic
#1F2D88 #881F2D #2D881F
tetradic
#1F2D88 #881F61 #887A1F #1F8845
square
#1F2D88 #881F61 #887A1F #1F8845
split-complementary
#1F2D88 #88451F #61881F
monochromatic
#080C24 #141D56 #1F2D88 #2A3DBA #4B5ED6

Accessibility & contrast

On white

11.74
#1F2D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D88
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D88#FFFFFF#000000##FFFFFF
##1F2D881.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2d88;
/* rgb */ color: rgb(31, 45, 136);
/* oklch */ color: oklch(35.2% 0.151 269.7);
Tailwind
colors: {
  custom: {
    50: '#6c66ac',
    500: '#1f2d88',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d88;
$custom-light: #6c66ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d88",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 136
  },
  "hsl": {
    "h": 232,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35168,
    "c": 0.15122,
    "h": 269.7
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2D88

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

Preview Lab → · Contrast checker → · Palette generator →

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