#1F2C71#1F2C71

#1F2C71 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.8% C 0.120 H 270.3°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#1F2C71
RGBrgb(31, 44, 113)
HSLhsl(230, 57%, 28%)
HSVhsv(230, 73%, 44%)
CMYKcmyk(72.6%, 61.1%, 0%, 55.7%)
CIE-LABlab(21.15, 20.02, -41.53)
CIE-LCHlch(21.15, 46.11, 295.74°)
OKLaboklab(32.8% 0.0006 -0.1197)
OKLCHoklch(32.8% 0.12 270.3)
XYZxyz(4.4454, 3.2845, 16.0193)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C71 #71641F
analogous
#1F5571 #1F2C71 #3B1F71
triadic
#1F2C71 #711F2C #2C711F
tetradic
#1F2C71 #711F55 #71641F #1F713B
square
#1F2C71 #711F55 #71641F #1F713B
split-complementary
#1F2C71 #713B1F #55711F
monochromatic
#070918 #121941 #1F2C71 #2C3FA1 #4056CB

Accessibility & contrast

On white

12.67
#1F2C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2C71
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C71#FFFFFF#000000##FFFFFF
##1F2C711.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2c71;
/* rgb */ color: rgb(31, 44, 113);
/* oklch */ color: oklch(32.8% 0.120 270.3);
Tailwind
colors: {
  custom: {
    50: '#67649a',
    500: '#1f2c71',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c71;
$custom-light: #67649a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c71",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 113
  },
  "hsl": {
    "h": 230.488,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32798,
    "c": 0.1197,
    "h": 270.3
  },
  "luminance": 0.03285
}

Semantic roles & 50–950 ramp

primary
#1F2C71
secondary
#A59647
accent
#C848E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #1F2C71

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

Preview Lab → · Contrast checker → · Palette generator →

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