#1F277B#1F277B

#1F277B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.141 H 271.7°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#1F277B
RGBrgb(31, 39, 123)
HSLhsl(235, 60%, 30%)
HSVhsv(235, 75%, 48%)
CMYKcmyk(74.8%, 68.3%, 0%, 51.8%)
CIE-LABlab(20.72, 27.37, -48.63)
CIE-LCHlch(20.72, 55.80, 299.37°)
OKLaboklab(32.76% 0.0042 -0.1406)
OKLCHoklch(32.76% 0.141 271.7)
XYZxyz(4.8645, 3.1719, 19.0909)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F277B #7B731F
analogous
#1F557B #1F277B #451F7B
triadic
#1F277B #7B1F27 #277B1F
tetradic
#1F277B #7B1F55 #7B731F #1F7B45
square
#1F277B #7B1F55 #7B731F #1F7B45
split-complementary
#1F277B #7B451F #557B1F
monochromatic
#060819 #13184A #1F277B #2B36AC #4451D0

Accessibility & contrast

On white

12.85
#1F277B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#1F277B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F277B
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F277B#FFFFFF#000000##FFFFFF
##1F277B1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003D4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f277b;
/* rgb */ color: rgb(31, 39, 123);
/* oklch */ color: oklch(32.8% 0.141 271.7);
Tailwind
colors: {
  custom: {
    50: '#6a61a2',
    500: '#1f277b',
    950: '#000000',
  },
}
SCSS
$custom: #1f277b;
$custom-light: #6a61a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f277b",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 123
  },
  "hsl": {
    "h": 234.783,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32762,
    "c": 0.14062,
    "h": 271.7
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

primary
#1F277B
secondary
#AEA548
accent
#D545E3
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F277B

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

Preview Lab → · Contrast checker → · Palette generator →

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