#1F2B72#1F2B72

#1F2B72 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.123 H 270.7°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#1F2B72
RGBrgb(31, 43, 114)
HSLhsl(231, 57%, 28%)
HSVhsv(231, 73%, 45%)
CMYKcmyk(72.8%, 62.3%, 0%, 55.3%)
CIE-LABlab(20.96, 21.12, -42.49)
CIE-LCHlch(20.96, 47.45, 296.43°)
OKLaboklab(32.68% 0.0015 -0.1225)
OKLCHoklch(32.68% 0.123 270.7)
XYZxyz(4.4652, 3.2335, 16.3051)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B72 #72661F
analogous
#1F5472 #1F2B72 #3C1F72
triadic
#1F2B72 #721F2B #2B721F
tetradic
#1F2B72 #721F54 #72661F #1F723C
square
#1F2B72 #721F54 #72661F #1F723C
split-complementary
#1F2B72 #723C1F #54721F
monochromatic
#070918 #121942 #1F2B72 #2C3DA2 #4054CB

Accessibility & contrast

On white

12.75
#1F2B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F2B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B72
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B72#FFFFFF#000000##FFFFFF
##1F2B721.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2b72;
/* rgb */ color: rgb(31, 43, 114);
/* oklch */ color: oklch(32.7% 0.123 270.7);
Tailwind
colors: {
  custom: {
    50: '#67649b',
    500: '#1f2b72',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b72;
$custom-light: #67649b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b72",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 114
  },
  "hsl": {
    "h": 231.325,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32681,
    "c": 0.12253,
    "h": 270.7
  },
  "luminance": 0.03234
}

Semantic roles & 50–950 ramp

primary
#1F2B72
secondary
#A69847
accent
#CA47E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2B72

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

Preview Lab → · Contrast checker → · Palette generator →

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