#1F297E#1F297E

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

Color values

HEX#1F297E
RGBrgb(31, 41, 126)
HSLhsl(234, 61%, 31%)
HSVhsv(234, 75%, 49%)
CMYKcmyk(75.4%, 67.5%, 0%, 50.6%)
CIE-LABlab(21.52, 27.16, -49.23)
CIE-LCHlch(21.52, 56.22, 298.88°)
OKLaboklab(33.43% 0.0026 -0.1423)
OKLCHoklch(33.43% 0.142 271)
XYZxyz(5.1226, 3.3830, 20.1176)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F297E #7E741F
analogous
#1F587E #1F297E #441F7E
triadic
#1F297E #7E1F29 #297E1F
tetradic
#1F297E #7E1F58 #7E741F #1F7E44
square
#1F297E #7E1F58 #7E741F #1F7E44
split-complementary
#1F297E #7E441F #587E1F
monochromatic
#07091C #13194D #1F297E #2B39AF #4655D1

Accessibility & contrast

On white

12.52
#1F297E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F297E
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F297E#FFFFFF#000000##FFFFFF
##1F297E1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003881
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f297e;
/* rgb */ color: rgb(31, 41, 126);
/* oklch */ color: oklch(33.4% 0.142 271.0);
Tailwind
colors: {
  custom: {
    50: '#6a62a4',
    500: '#1f297e',
    950: '#000000',
  },
}
SCSS
$custom: #1f297e;
$custom-light: #6a62a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f297e",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 126
  },
  "hsl": {
    "h": 233.684,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33433,
    "c": 0.14232,
    "h": 271
  },
  "luminance": 0.03384
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F297E

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

Preview Lab → · Contrast checker → · Palette generator →

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