#1F297F#1F297F

#1F297F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.144 H 271.0°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#1F297F
RGBrgb(31, 41, 127)
HSLhsl(234, 61%, 31%)
HSVhsv(234, 76%, 50%)
CMYKcmyk(75.6%, 67.7%, 0%, 50.2%)
CIE-LABlab(21.61, 27.54, -49.70)
CIE-LCHlch(21.61, 56.82, 298.99°)
OKLaboklab(33.53% 0.0025 -0.1437)
OKLCHoklch(33.53% 0.144 271)
XYZxyz(5.1875, 3.4090, 20.4592)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F297F #7F751F
analogous
#1F597F #1F297F #451F7F
triadic
#1F297F #7F1F29 #297F1F
tetradic
#1F297F #7F1F59 #7F751F #1F7F45
square
#1F297F #7F1F59 #7F751F #1F7F45
split-complementary
#1F297F #7F451F #597F1F
monochromatic
#07091D #13194E #1F297F #2B39B0 #4655D2

Accessibility & contrast

On white

12.49
#1F297F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F297F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F297F
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F297F#FFFFFF#000000##FFFFFF
##1F297F1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003882
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f297f;
/* rgb */ color: rgb(31, 41, 127);
/* oklch */ color: oklch(33.5% 0.144 271.0);
Tailwind
colors: {
  custom: {
    50: '#6a63a5',
    500: '#1f297f',
    950: '#000000',
  },
}
SCSS
$custom: #1f297f;
$custom-light: #6a63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f297f",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 127
  },
  "hsl": {
    "h": 233.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33532,
    "c": 0.14371,
    "h": 271
  },
  "luminance": 0.03409
}

Semantic roles & 50–950 ramp

primary
#1F297F
secondary
#B2A748
accent
#D344E4
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F297F

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

Preview Lab → · Contrast checker → · Palette generator →

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