#1F2D77#1F2D77

#1F2D77 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.127 H 269.9°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#1F2D77
RGBrgb(31, 45, 119)
HSLhsl(230, 59%, 29%)
HSVhsv(230, 74%, 47%)
CMYKcmyk(73.9%, 62.2%, 0%, 53.3%)
CIE-LABlab(21.94, 21.68, -44.08)
CIE-LCHlch(21.94, 49.13, 296.19°)
OKLaboklab(33.55% -0.0002 -0.1272)
OKLCHoklch(33.55% 0.127 269.9)
XYZxyz(4.8321, 3.4995, 17.8700)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D77 #77691F
analogous
#1F5977 #1F2D77 #3D1F77
triadic
#1F2D77 #771F2D #2D771F
tetradic
#1F2D77 #771F59 #77691F #1F773D
square
#1F2D77 #771F59 #77691F #1F773D
split-complementary
#1F2D77 #773D1F #59771F
monochromatic
#060918 #121B46 #1F2D77 #2C3FA8 #4359CE

Accessibility & contrast

On white

12.35
#1F2D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D77
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D77#FFFFFF#000000##FFFFFF
##1F2D771.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003979
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2d77;
/* rgb */ color: rgb(31, 45, 119);
/* oklch */ color: oklch(33.6% 0.127 269.9);
Tailwind
colors: {
  custom: {
    50: '#68659f',
    500: '#1f2d77',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d77;
$custom-light: #68659f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d77",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 119
  },
  "hsl": {
    "h": 230.455,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3355,
    "c": 0.12718,
    "h": 269.9
  },
  "luminance": 0.035
}

Semantic roles & 50–950 ramp

primary
#1F2D77
secondary
#AB9B47
accent
#C946E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #1F2D77

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

Preview Lab → · Contrast checker → · Palette generator →

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