#1F27A0#1F27A0

#1F27A0 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.7% C 0.189 H 269.8°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#1F27A0
RGBrgb(31, 39, 160)
HSLhsl(236, 68%, 37%)
HSVhsv(236, 81%, 63%)
CMYKcmyk(80.6%, 75.6%, 0%, 37.3%)
CIE-LABlab(24.57, 40.83, -65.30)
CIE-LCHlch(24.57, 77.01, 302.02°)
OKLaboklab(36.69% -0.0005 -0.1891)
OKLCHoklch(36.69% 0.189 269.8)
XYZxyz(7.6336, 4.2795, 33.6746)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F27A0 #A0981F
analogous
#1F68A0 #1F27A0 #571FA0
triadic
#1F27A0 #A01F27 #27A01F
tetradic
#1F27A0 #A01F68 #A0981F #1FA057
square
#1F27A0 #A01F68 #A0981F #1FA057
split-complementary
#1F27A0 #A0571F #68A01F
monochromatic
#0B0E39 #151B6D #1F27A0 #2933D3 #5A63DF

Accessibility & contrast

On white

11.31
#1F27A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F27A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F27A0
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F27A0#FFFFFF#000000##FFFFFF
##1F27A01.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#004B62
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f27a0;
/* rgb */ color: rgb(31, 39, 160);
/* oklch */ color: oklch(36.7% 0.189 269.8);
Tailwind
colors: {
  custom: {
    50: '#7362bd',
    500: '#1f27a0',
    950: '#000000',
  },
}
SCSS
$custom: #1f27a0;
$custom-light: #7362bd;
$custom-dark: #000000;
JSON
{
  "hex": "#1f27a0",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 160
  },
  "hsl": {
    "h": 236.279,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.36693,
    "c": 0.18914,
    "h": 269.8
  },
  "luminance": 0.0428
}

Semantic roles & 50–950 ramp

primary
#1F27A0
secondary
#C3BC58
accent
#E03DEA
background
#F7F5FB
surface
#EEEAF7
border
#C9C6D0
text
#0A0512
muted
#7C7981

Preview Lab

Preview with #1F27A0

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

Preview Lab → · Contrast checker → · Palette generator →

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