#1F277A#1F277A

#1F277A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.7% C 0.139 H 271.8°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#1F277A
RGBrgb(31, 39, 122)
HSLhsl(235, 59%, 30%)
HSVhsv(235, 75%, 48%)
CMYKcmyk(74.6%, 68%, 0%, 52.2%)
CIE-LABlab(20.62, 26.99, -48.15)
CIE-LCHlch(20.62, 55.20, 299.27°)
OKLaboklab(32.66% 0.0043 -0.1392)
OKLCHoklch(32.66% 0.139 271.8)
XYZxyz(4.8023, 3.1470, 18.7629)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F277A #7A721F
analogous
#1F557A #1F277A #441F7A
triadic
#1F277A #7A1F27 #277A1F
tetradic
#1F277A #7A1F55 #7A721F #1F7A44
square
#1F277A #7A1F55 #7A721F #1F7A44
split-complementary
#1F277A #7A441F #557A1F
monochromatic
#060818 #131749 #1F277A #2B37AB #4450CF

Accessibility & contrast

On white

12.89
#1F277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F277A
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F277A#FFFFFF#000000##FFFFFF
##1F277A1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#003D4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f277a;
/* rgb */ color: rgb(31, 39, 122);
/* oklch */ color: oklch(32.7% 0.139 271.8);
Tailwind
colors: {
  custom: {
    50: '#6961a1',
    500: '#1f277a',
    950: '#000000',
  },
}
SCSS
$custom: #1f277a;
$custom-light: #6961a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f277a",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 234.725,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.32663,
    "c": 0.13923,
    "h": 271.8
  },
  "luminance": 0.03147
}

Semantic roles & 50–950 ramp

primary
#1F277A
secondary
#ADA447
accent
#D545E3
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F277A

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

Preview Lab → · Contrast checker → · Palette generator →

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