#1F2D8A#1F2D8A

#1F2D8A is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.4% C 0.154 H 269.7°. Best body text is #FFFFFF at 11.66:1 contrast (WCAG AA passes).

Color values

HEX#1F2D8A
RGBrgb(31, 45, 138)
HSLhsl(232, 63%, 33%)
HSVhsv(232, 78%, 54%)
CMYKcmyk(77.5%, 67.4%, 0%, 45.9%)
CIE-LABlab(23.68, 29.04, -53.22)
CIE-LCHlch(23.68, 60.63, 298.62°)
OKLaboklab(35.37% -0.0008 -0.1539)
OKLCHoklch(35.37% 0.154 269.7)
XYZxyz(6.0893, 4.0024, 24.4914)
Luminance0.0400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D8A #8A7C1F
analogous
#1F628A #1F2D8A #471F8A
triadic
#1F2D8A #8A1F2D #2D8A1F
tetradic
#1F2D8A #8A1F62 #8A7C1F #1F8A47
square
#1F2D8A #8A1F62 #8A7C1F #1F8A47
split-complementary
#1F2D8A #8A471F #628A1F
monochromatic
#090C26 #141D58 #1F2D8A #2A3DBC #4C5FD7

Accessibility & contrast

On white

11.66
#1F2D8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#1F2D8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D8A
11.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D8A#FFFFFF#000000##FFFFFF
##1F2D8A1.0011.661.8011.66
#FFFFFF11.661.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8D
Deuteranopia (green-blind)
#003388
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2d8a;
/* rgb */ color: rgb(31, 45, 138);
/* oklch */ color: oklch(35.4% 0.154 269.7);
Tailwind
colors: {
  custom: {
    50: '#6d66ad',
    500: '#1f2d8a',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d8a;
$custom-light: #6d66ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d8a",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 138
  },
  "hsl": {
    "h": 232.15,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.35366,
    "c": 0.15395,
    "h": 269.7
  },
  "luminance": 0.04003
}

Semantic roles & 50–950 ramp

primary
#1F2D8A
secondary
#BAAB4B
accent
#D141E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F2D8A

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

Preview Lab → · Contrast checker → · Palette generator →

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