#1F2C77#1F2C77

#1F2C77 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.129 H 270.3°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#1F2C77
RGBrgb(31, 44, 119)
HSLhsl(231, 59%, 29%)
HSVhsv(231, 74%, 47%)
CMYKcmyk(73.9%, 63%, 0%, 53.3%)
CIE-LABlab(21.67, 22.38, -44.53)
CIE-LCHlch(21.67, 49.84, 296.68°)
OKLaboklab(33.35% 0.0006 -0.1285)
OKLCHoklch(33.35% 0.129 270.3)
XYZxyz(4.7944, 3.4241, 17.8574)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C77 #776A1F
analogous
#1F5877 #1F2C77 #3E1F77
triadic
#1F2C77 #771F2C #2C771F
tetradic
#1F2C77 #771F58 #776A1F #1F773E
square
#1F2C77 #771F58 #776A1F #1F773E
split-complementary
#1F2C77 #773E1F #58771F
monochromatic
#060918 #121A46 #1F2C77 #2C3EA8 #4357CE

Accessibility & contrast

On white

12.46
#1F2C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C77
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C77#FFFFFF#000000##FFFFFF
##1F2C771.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003879
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2c77;
/* rgb */ color: rgb(31, 44, 119);
/* oklch */ color: oklch(33.3% 0.129 270.3);
Tailwind
colors: {
  custom: {
    50: '#68659f',
    500: '#1f2c77',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c77;
$custom-light: #68659f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c77",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 119
  },
  "hsl": {
    "h": 231.136,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33346,
    "c": 0.1285,
    "h": 270.3
  },
  "luminance": 0.03425
}

Semantic roles & 50–950 ramp

primary
#1F2C77
secondary
#AB9C47
accent
#CB46E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #1F2C77

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

Preview Lab → · Contrast checker → · Palette generator →

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