#1F27A6#1F27A6

#1F27A6 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.197 H 269.6°. Best body text is #FFFFFF at 11.06:1 contrast (WCAG AA passes).

Color values

HEX#1F27A6
RGBrgb(31, 39, 166)
HSLhsl(236, 69%, 39%)
HSVhsv(236, 81%, 65%)
CMYKcmyk(81.3%, 76.5%, 0%, 34.9%)
CIE-LABlab(25.24, 42.90, -67.83)
CIE-LCHlch(25.24, 80.26, 302.31°)
OKLaboklab(37.36% -0.0015 -0.1965)
OKLCHoklch(37.36% 0.197 269.6)
XYZxyz(8.1712, 4.4946, 36.5059)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F27A6 #A69E1F
analogous
#1F6AA6 #1F27A6 #5A1FA6
triadic
#1F27A6 #A61F27 #27A61F
tetradic
#1F27A6 #A61F6A #A69E1F #1FA65A
square
#1F27A6 #A61F6A #A69E1F #1FA65A
split-complementary
#1F27A6 #A65A1F #6AA61F
monochromatic
#0C0F3F #151B72 #1F27A6 #2B35D7 #5E66E1

Accessibility & contrast

On white

11.06
#1F27A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1F27A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F27A6
11.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F27A6#FFFFFF#000000##FFFFFF
##1F27A61.0011.061.9011.06
#FFFFFF11.061.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0035A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f27a6;
/* rgb */ color: rgb(31, 39, 166);
/* oklch */ color: oklch(37.4% 0.197 269.6);
Tailwind
colors: {
  custom: {
    50: '#7563c2',
    500: '#1f27a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f27a6;
$custom-light: #7563c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f27a6",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 166
  },
  "hsl": {
    "h": 236.444,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37364,
    "c": 0.19652,
    "h": 269.6
  },
  "luminance": 0.04496
}

Semantic roles & 50–950 ramp

primary
#1F27A6
secondary
#C5BF5B
accent
#E13CEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #1F27A6

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

Preview Lab → · Contrast checker → · Palette generator →

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