#1F2170#1F2170

#1F2170 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.133 H 274.2°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#1F2170
RGBrgb(31, 33, 112)
HSLhsl(239, 57%, 28%)
HSVhsv(239, 72%, 44%)
CMYKcmyk(72.3%, 70.5%, 0%, 56.1%)
CIE-LABlab(18.14, 27.25, -45.81)
CIE-LCHlch(18.14, 53.30, 300.75°)
OKLaboklab(30.55% 0.0096 -0.1323)
OKLCHoklch(30.55% 0.133 274.2)
XYZxyz(4.0326, 2.5485, 15.6055)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2170 #706E1F
analogous
#1F4970 #1F2170 #461F70
triadic
#1F2170 #701F21 #21701F
tetradic
#1F2170 #701F49 #706E1F #1F7046
square
#1F2170 #701F49 #706E1F #1F7046
split-complementary
#1F2170 #70461F #49701F
monochromatic
#070718 #121340 #1F2170 #2C2FA0 #3F43CA

Accessibility & contrast

On white

13.91
#1F2170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#1F2170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2170
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2170#FFFFFF#000000##FFFFFF
##1F21701.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#003645
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #1f2170;
/* rgb */ color: rgb(31, 33, 112);
/* oklch */ color: oklch(30.6% 0.133 274.2);
Tailwind
colors: {
  custom: {
    50: '#675c9a',
    500: '#1f2170',
    950: '#000000',
  },
}
SCSS
$custom: #1f2170;
$custom-light: #675c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2170",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 112
  },
  "hsl": {
    "h": 238.519,
    "s": 56.643,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30554,
    "c": 0.13268,
    "h": 274.2
  },
  "luminance": 0.02549
}

Semantic roles & 50–950 ramp

primary
#1F2170
secondary
#A4A247
accent
#DC48E0
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2170

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

Preview Lab → · Contrast checker → · Palette generator →

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