#1F2C72#1F2C72

#1F2C72 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.121 H 270.3°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#1F2C72
RGBrgb(31, 44, 114)
HSLhsl(231, 57%, 28%)
HSVhsv(231, 73%, 45%)
CMYKcmyk(72.8%, 61.4%, 0%, 55.3%)
CIE-LABlab(21.23, 20.42, -42.04)
CIE-LCHlch(21.23, 46.73, 295.91°)
OKLaboklab(32.89% 0.0006 -0.1212)
OKLCHoklch(32.89% 0.121 270.3)
XYZxyz(4.5020, 3.3071, 16.3174)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C72 #72651F
analogous
#1F5572 #1F2C72 #3B1F72
triadic
#1F2C72 #721F2C #2C721F
tetradic
#1F2C72 #721F55 #72651F #1F723B
square
#1F2C72 #721F55 #72651F #1F723B
split-complementary
#1F2C72 #723B1F #55721F
monochromatic
#070918 #121942 #1F2C72 #2C3FA2 #4056CB

Accessibility & contrast

On white

12.64
#1F2C72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#1F2C72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C72
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C72#FFFFFF#000000##FFFFFF
##1F2C721.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003774
Deuteranopia (green-blind)
#002F71
Tritanopia (blue-blind)
#003D4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2c72;
/* rgb */ color: rgb(31, 44, 114);
/* oklch */ color: oklch(32.9% 0.121 270.3);
Tailwind
colors: {
  custom: {
    50: '#67649b',
    500: '#1f2c72',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c72;
$custom-light: #67649b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c72",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 114
  },
  "hsl": {
    "h": 230.602,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32888,
    "c": 0.12118,
    "h": 270.3
  },
  "luminance": 0.03308
}

Semantic roles & 50–950 ramp

primary
#1F2C72
secondary
#A69747
accent
#C947E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #1F2C72

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

Preview Lab → · Contrast checker → · Palette generator →

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