#1F27A8#1F27A8

#1F27A8 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.199 H 269.5°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#1F27A8
RGBrgb(31, 39, 168)
HSLhsl(236, 69%, 39%)
HSVhsv(236, 82%, 66%)
CMYKcmyk(81.5%, 76.8%, 0%, 34.1%)
CIE-LABlab(25.47, 43.58, -68.67)
CIE-LCHlch(25.47, 81.33, 302.40°)
OKLaboklab(37.59% -0.0018 -0.1989)
OKLCHoklch(37.59% 0.199 269.5)
XYZxyz(8.3561, 4.5685, 37.4796)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F27A8 #A8A01F
analogous
#1F6CA8 #1F27A8 #5C1FA8
triadic
#1F27A8 #A81F27 #27A81F
tetradic
#1F27A8 #A81F6C #A8A01F #1FA85C
square
#1F27A8 #A81F6C #A8A01F #1FA85C
split-complementary
#1F27A8 #A85C1F #6CA81F
monochromatic
#0C0F41 #151B74 #1F27A8 #2C36D8 #6067E2

Accessibility & contrast

On white

10.97
#1F27A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#1F27A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F27A8
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F27A8#FFFFFF#000000##FFFFFF
##1F27A81.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0035A6
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f27a8;
/* rgb */ color: rgb(31, 39, 168);
/* oklch */ color: oklch(37.6% 0.199 269.5);
Tailwind
colors: {
  custom: {
    50: '#7563c3',
    500: '#1f27a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f27a8;
$custom-light: #7563c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f27a8",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 168
  },
  "hsl": {
    "h": 236.496,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37589,
    "c": 0.19894,
    "h": 269.5
  },
  "luminance": 0.04569
}

Semantic roles & 50–950 ramp

primary
#1F27A8
secondary
#C6C05D
accent
#E13CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #1F27A8

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

Preview Lab → · Contrast checker → · Palette generator →

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