#1F2A70#1F2A70

#1F2A70 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.121 H 271.1°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#1F2A70
RGBrgb(31, 42, 112)
HSLhsl(232, 57%, 28%)
HSVhsv(232, 72%, 44%)
CMYKcmyk(72.3%, 62.5%, 0%, 56.1%)
CIE-LABlab(20.51, 21.04, -41.94)
CIE-LCHlch(20.51, 46.92, 296.64°)
OKLaboklab(32.29% 0.0024 -0.1209)
OKLCHoklch(32.29% 0.121 271.1)
XYZxyz(4.3167, 3.1167, 15.7002)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A70 #70651F
analogous
#1F5270 #1F2A70 #3C1F70
triadic
#1F2A70 #701F2A #2A701F
tetradic
#1F2A70 #701F52 #70651F #1F703C
square
#1F2A70 #701F52 #70651F #1F703C
split-complementary
#1F2A70 #703C1F #52701F
monochromatic
#070918 #121840 #1F2A70 #2C3CA0 #3F52CA

Accessibility & contrast

On white

12.94
#1F2A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1F2A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A70
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A70#FFFFFF#000000##FFFFFF
##1F2A701.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#002E6F
Tritanopia (blue-blind)
#003B48
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2a70;
/* rgb */ color: rgb(31, 42, 112);
/* oklch */ color: oklch(32.3% 0.121 271.1);
Tailwind
colors: {
  custom: {
    50: '#66639a',
    500: '#1f2a70',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a70;
$custom-light: #66639a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a70",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 112
  },
  "hsl": {
    "h": 231.852,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32292,
    "c": 0.12093,
    "h": 271.1
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#1F2A70
secondary
#A49747
accent
#CB48E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2A70

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

Preview Lab → · Contrast checker → · Palette generator →

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