#1F2C85#1F2C85

#1F2C85 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.148 H 270.0°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#1F2C85
RGBrgb(31, 44, 133)
HSLhsl(232, 62%, 32%)
HSVhsv(232, 77%, 52%)
CMYKcmyk(76.7%, 66.9%, 0%, 47.8%)
CIE-LABlab(22.95, 27.80, -51.29)
CIE-LCHlch(22.95, 58.34, 298.46°)
OKLaboklab(34.69% 0.0001 -0.1483)
OKLCHoklch(34.69% 0.148 270)
XYZxyz(5.6979, 3.7855, 22.6161)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C85 #85781F
analogous
#1F5F85 #1F2C85 #451F85
triadic
#1F2C85 #851F2C #2C851F
tetradic
#1F2C85 #851F5F #85781F #1F8545
square
#1F2C85 #851F5F #85781F #1F8545
split-complementary
#1F2C85 #85451F #5F851F
monochromatic
#080B22 #131C53 #1F2C85 #2B3CB7 #4A5BD5

Accessibility & contrast

On white

11.95
#1F2C85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#1F2C85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C85
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C85#FFFFFF#000000##FFFFFF
##1F2C851.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C88
Deuteranopia (green-blind)
#003283
Tritanopia (blue-blind)
#004454
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2c85;
/* rgb */ color: rgb(31, 44, 133);
/* oklch */ color: oklch(34.7% 0.148 270.0);
Tailwind
colors: {
  custom: {
    50: '#6c65a9',
    500: '#1f2c85',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c85;
$custom-light: #6c65a9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c85",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 133
  },
  "hsl": {
    "h": 232.353,
    "s": 62.195,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34686,
    "c": 0.14832,
    "h": 270
  },
  "luminance": 0.03786
}

Semantic roles & 50–950 ramp

primary
#1F2C85
secondary
#B7A949
accent
#D143E5
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2C85

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

Preview Lab → · Contrast checker → · Palette generator →

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