#1F1270#1F1270

#1F1270 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.3% C 0.149 H 277.3°. Best body text is #FFFFFF at 15.23:1 contrast (WCAG AA passes).

Color values

HEX#1F1270
RGBrgb(31, 18, 112)
HSLhsl(248, 72%, 25%)
HSVhsv(248, 84%, 44%)
CMYKcmyk(72.3%, 83.9%, 0%, 56.1%)
CIE-LABlab(14.92, 36.27, -51.11)
CIE-LCHlch(14.92, 62.67, 305.36°)
OKLaboklab(28.27% 0.0188 -0.1477)
OKLCHoklch(28.27% 0.149 277.3)
XYZxyz(3.7051, 1.8934, 15.4963)
Luminance0.0189 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1270 #637012
analogous
#123470 #1F1270 #4E1270
triadic
#1F1270 #701F12 #12701F
tetradic
#1F1270 #701234 #637012 #12704E
square
#1F1270 #701234 #637012 #12704E
split-complementary
#1F1270 #704E12 #347012
monochromatic
#07041A #100A3B #1F1270 #2E1AA5 #3C23D9

Accessibility & contrast

On white

15.23
#1F1270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1F1270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1270
15.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1270#FFFFFF#000000##FFFFFF
##1F12701.0015.231.3815.23
#FFFFFF15.231.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002973
Deuteranopia (green-blind)
#00216E
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #1f1270;
/* rgb */ color: rgb(31, 18, 112);
/* oklch */ color: oklch(28.3% 0.149 277.3);
Tailwind
colors: {
  custom: {
    50: '#69539a',
    500: '#1f1270',
    950: '#000000',
  },
}
SCSS
$custom: #1f1270;
$custom-light: #69539a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1270",
  "rgb": {
    "r": 31,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 248.298,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28269,
    "c": 0.14889,
    "h": 277.3
  },
  "luminance": 0.01894
}

Semantic roles & 50–950 ramp

primary
#1F1270
secondary
#98A737
accent
#EF39D6
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #1F1270

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

Preview Lab → · Contrast checker → · Palette generator →

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