#1F2B71#1F2B71

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

Color values

HEX#1F2B71
RGBrgb(31, 43, 113)
HSLhsl(231, 57%, 28%)
HSVhsv(231, 73%, 44%)
CMYKcmyk(72.6%, 61.9%, 0%, 55.7%)
CIE-LABlab(20.87, 20.73, -41.99)
CIE-LCHlch(20.87, 46.83, 296.27°)
OKLaboklab(32.59% 0.0015 -0.121)
OKLCHoklch(32.59% 0.121 270.7)
XYZxyz(4.4086, 3.2109, 16.0070)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B71 #71651F
analogous
#1F5471 #1F2B71 #3C1F71
triadic
#1F2B71 #711F2B #2B711F
tetradic
#1F2B71 #711F54 #71651F #1F713C
square
#1F2B71 #711F54 #71651F #1F713C
split-complementary
#1F2B71 #713C1F #54711F
monochromatic
#070918 #121941 #1F2B71 #2C3DA1 #4054CB

Accessibility & contrast

On white

12.79
#1F2B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#1F2B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B71
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B71#FFFFFF#000000##FFFFFF
##1F2B711.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003673
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2b71;
/* rgb */ color: rgb(31, 43, 113);
/* oklch */ color: oklch(32.6% 0.121 270.7);
Tailwind
colors: {
  custom: {
    50: '#67649a',
    500: '#1f2b71',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b71;
$custom-light: #67649a;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b71",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 113
  },
  "hsl": {
    "h": 231.22,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3259,
    "c": 0.12106,
    "h": 270.7
  },
  "luminance": 0.03211
}

Semantic roles & 50–950 ramp

primary
#1F2B71
secondary
#A59747
accent
#CA48E0
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2B71

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

Preview Lab → · Contrast checker → · Palette generator →

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