#1F2A88#1F2A88

#1F2A88 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.6% C 0.155 H 270.4°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#1F2A88
RGBrgb(31, 42, 136)
HSLhsl(234, 63%, 33%)
HSVhsv(234, 77%, 53%)
CMYKcmyk(77.2%, 69.1%, 0%, 46.7%)
CIE-LABlab(22.74, 30.28, -53.52)
CIE-LCHlch(22.74, 61.49, 299.50°)
OKLaboklab(34.62% 0.0011 -0.1548)
OKLCHoklch(34.62% 0.155 270.4)
XYZxyz(5.8355, 3.7242, 23.6991)
Luminance0.0372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A88 #887D1F
analogous
#1F5F88 #1F2A88 #481F88
triadic
#1F2A88 #881F2A #2A881F
tetradic
#1F2A88 #881F5F #887D1F #1F8848
square
#1F2A88 #881F5F #887D1F #1F8848
split-complementary
#1F2A88 #88481F #5F881F
monochromatic
#080B24 #141B56 #1F2A88 #2A39BA #4B5AD6

Accessibility & contrast

On white

12.03
#1F2A88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2A88
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A88#FFFFFF#000000##FFFFFF
##1F2A881.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B8B
Deuteranopia (green-blind)
#003186
Tritanopia (blue-blind)
#004355
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2a88;
/* rgb */ color: rgb(31, 42, 136);
/* oklch */ color: oklch(34.6% 0.155 270.4);
Tailwind
colors: {
  custom: {
    50: '#6d63ac',
    500: '#1f2a88',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a88;
$custom-light: #6d63ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a88",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 136
  },
  "hsl": {
    "h": 233.714,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.3462,
    "c": 0.15484,
    "h": 270.4
  },
  "luminance": 0.03725
}

Semantic roles & 50–950 ramp

primary
#1F2A88
secondary
#B9AD4A
accent
#D542E6
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1F2A88

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

Preview Lab → · Contrast checker → · Palette generator →

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