#1F27A9#1F27A9

#1F27A9 is a dark, highly saturated blue. Relative luminance 0.046; OKLCH L 37.7% C 0.200 H 269.4°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#1F27A9
RGBrgb(31, 39, 169)
HSLhsl(237, 69%, 39%)
HSVhsv(237, 82%, 66%)
CMYKcmyk(81.7%, 76.9%, 0%, 33.7%)
CIE-LABlab(25.58, 43.92, -69.09)
CIE-LCHlch(25.58, 81.87, 302.45°)
OKLaboklab(37.7% -0.002 -0.2001)
OKLCHoklch(37.7% 0.2 269.4)
XYZxyz(8.4496, 4.6059, 37.9721)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F27A9 #A9A11F
analogous
#1F6CA9 #1F27A9 #5C1FA9
triadic
#1F27A9 #A91F27 #27A91F
tetradic
#1F27A9 #A91F6C #A9A11F #1FA95C
square
#1F27A9 #A91F6C #A9A11F #1FA95C
split-complementary
#1F27A9 #A95C1F #6CA91F
monochromatic
#0C0F42 #161B75 #1F27A9 #2D37D8 #6068E2

Accessibility & contrast

On white

10.93
#1F27A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1F27A9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F27A9
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F27A9#FFFFFF#000000##FFFFFF
##1F27A91.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AD
Deuteranopia (green-blind)
#0036A7
Tritanopia (blue-blind)
#004E67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f27a9;
/* rgb */ color: rgb(31, 39, 169);
/* oklch */ color: oklch(37.7% 0.200 269.4);
Tailwind
colors: {
  custom: {
    50: '#7663c4',
    500: '#1f27a9',
    950: '#000000',
  },
}
SCSS
$custom: #1f27a9;
$custom-light: #7663c4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f27a9",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 169
  },
  "hsl": {
    "h": 236.522,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37702,
    "c": 0.20015,
    "h": 269.4
  },
  "luminance": 0.04607
}

Semantic roles & 50–950 ramp

primary
#1F27A9
secondary
#C7C05D
accent
#E23CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #1F27A9

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

Preview Lab → · Contrast checker → · Palette generator →

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