#1F2B88#1F2B88

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

Color values

HEX#1F2B88
RGBrgb(31, 43, 136)
HSLhsl(233, 63%, 33%)
HSVhsv(233, 77%, 53%)
CMYKcmyk(77.2%, 68.4%, 0%, 46.7%)
CIE-LABlab(22.99, 29.61, -53.11)
CIE-LCHlch(22.99, 60.81, 299.14°)
OKLaboklab(34.8% 0.0005 -0.1536)
OKLCHoklch(34.8% 0.154 270.2)
XYZxyz(5.8714, 3.7960, 23.7110)
Luminance0.0380 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B88 #887C1F
analogous
#1F5F88 #1F2B88 #481F88
triadic
#1F2B88 #881F2B #2B881F
tetradic
#1F2B88 #881F5F #887C1F #1F8848
square
#1F2B88 #881F5F #887C1F #1F8848
split-complementary
#1F2B88 #88481F #5F881F
monochromatic
#080B24 #141B56 #1F2B88 #2A3BBA #4B5BD6

Accessibility & contrast

On white

11.94
#1F2B88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F2B88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B88
11.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B88#FFFFFF#000000##FFFFFF
##1F2B881.0011.941.7611.94
#FFFFFF11.941.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.941.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2b88;
/* rgb */ color: rgb(31, 43, 136);
/* oklch */ color: oklch(34.8% 0.154 270.2);
Tailwind
colors: {
  custom: {
    50: '#6d64ac',
    500: '#1f2b88',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b88;
$custom-light: #6d64ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b88",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 136
  },
  "hsl": {
    "h": 233.143,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.348,
    "c": 0.15365,
    "h": 270.2
  },
  "luminance": 0.03797
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2B88

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

Preview Lab → · Contrast checker → · Palette generator →

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