#1F297D#1F297D

#1F297D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.141 H 271.1°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#1F297D
RGBrgb(31, 41, 125)
HSLhsl(234, 60%, 31%)
HSVhsv(234, 75%, 49%)
CMYKcmyk(75.2%, 67.2%, 0%, 51%)
CIE-LABlab(21.42, 26.77, -48.75)
CIE-LCHlch(21.42, 55.62, 298.78°)
OKLaboklab(33.33% 0.0027 -0.1409)
OKLCHoklch(33.33% 0.141 271.1)
XYZxyz(5.0584, 3.3573, 19.7795)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F297D #7D731F
analogous
#1F587D #1F297D #441F7D
triadic
#1F297D #7D1F29 #297D1F
tetradic
#1F297D #7D1F58 #7D731F #1F7D44
square
#1F297D #7D1F58 #7D731F #1F7D44
split-complementary
#1F297D #7D441F #587D1F
monochromatic
#07091B #13194C #1F297D #2B39AE #4554D1

Accessibility & contrast

On white

12.56
#1F297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F297D
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F297D#FFFFFF#000000##FFFFFF
##1F297D1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f297d;
/* rgb */ color: rgb(31, 41, 125);
/* oklch */ color: oklch(33.3% 0.141 271.1);
Tailwind
colors: {
  custom: {
    50: '#6a62a3',
    500: '#1f297d',
    950: '#000000',
  },
}
SCSS
$custom: #1f297d;
$custom-light: #6a62a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f297d",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 233.617,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33334,
    "c": 0.14093,
    "h": 271.1
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#1F297D
secondary
#B0A548
accent
#D244E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F297D

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

Preview Lab → · Contrast checker → · Palette generator →

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