#1F277D#1F277D

#1F277D is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.0% C 0.143 H 271.6°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#1F277D
RGBrgb(31, 39, 125)
HSLhsl(235, 60%, 31%)
HSVhsv(235, 75%, 49%)
CMYKcmyk(75.2%, 68.8%, 0%, 51%)
CIE-LABlab(20.91, 28.12, -49.58)
CIE-LCHlch(20.91, 57.00, 299.56°)
OKLaboklab(32.96% 0.004 -0.1433)
OKLCHoklch(32.96% 0.143 271.6)
XYZxyz(4.9910, 3.2225, 19.7570)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F277D #7D751F
analogous
#1F567D #1F277D #461F7D
triadic
#1F277D #7D1F27 #277D1F
tetradic
#1F277D #7D1F56 #7D751F #1F7D46
square
#1F277D #7D1F56 #7D751F #1F7D46
split-complementary
#1F277D #7D461F #567D1F
monochromatic
#07081B #13184C #1F277D #2B36AE #4551D1

Accessibility & contrast

On white

12.77
#1F277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F277D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F277D
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F277D#FFFFFF#000000##FFFFFF
##1F277D1.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003780
Deuteranopia (green-blind)
#002E7B
Tritanopia (blue-blind)
#003E4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f277d;
/* rgb */ color: rgb(31, 39, 125);
/* oklch */ color: oklch(33.0% 0.143 271.6);
Tailwind
colors: {
  custom: {
    50: '#6a61a4',
    500: '#1f277d',
    950: '#000000',
  },
}
SCSS
$custom: #1f277d;
$custom-light: #6a61a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f277d",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 234.894,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32963,
    "c": 0.14341,
    "h": 271.6
  },
  "luminance": 0.03223
}

Semantic roles & 50–950 ramp

primary
#1F277D
secondary
#B0A748
accent
#D644E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F277D

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

Preview Lab → · Contrast checker → · Palette generator →

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