#1F2C83#1F2C83

#1F2C83 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.5% C 0.146 H 270.1°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#1F2C83
RGBrgb(31, 44, 131)
HSLhsl(232, 62%, 32%)
HSVhsv(232, 76%, 51%)
CMYKcmyk(76.3%, 66.4%, 0%, 48.6%)
CIE-LABlab(22.76, 27.04, -50.34)
CIE-LCHlch(22.76, 57.14, 298.24°)
OKLaboklab(34.49% 0.0002 -0.1456)
OKLCHoklch(34.49% 0.146 270.1)
XYZxyz(5.5611, 3.7308, 21.8954)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C83 #83761F
analogous
#1F5E83 #1F2C83 #441F83
triadic
#1F2C83 #831F2C #2C831F
tetradic
#1F2C83 #831F5E #83761F #1F8344
square
#1F2C83 #831F5E #83761F #1F8344
split-complementary
#1F2C83 #83441F #5E831F
monochromatic
#080B20 #131B52 #1F2C83 #2B3DB4 #495BD4

Accessibility & contrast

On white

12.03
#1F2C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#1F2C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C83
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C83#FFFFFF#000000##FFFFFF
##1F2C831.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B86
Deuteranopia (green-blind)
#003281
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2c83;
/* rgb */ color: rgb(31, 44, 131);
/* oklch */ color: oklch(34.5% 0.146 270.1);
Tailwind
colors: {
  custom: {
    50: '#6b65a8',
    500: '#1f2c83',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c83;
$custom-light: #6b65a8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c83",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 131
  },
  "hsl": {
    "h": 232.2,
    "s": 61.728,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34489,
    "c": 0.14555,
    "h": 270.1
  },
  "luminance": 0.03731
}

Semantic roles & 50–950 ramp

primary
#1F2C83
secondary
#B6A748
accent
#D043E5
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080510
muted
#7A7A7F

Preview Lab

Preview with #1F2C83

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

Preview Lab → · Contrast checker → · Palette generator →

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