#1F2D7E#1F2D7E

#1F2D7E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.2% C 0.137 H 269.9°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#1F2D7E
RGBrgb(31, 45, 126)
HSLhsl(231, 61%, 31%)
HSVhsv(231, 75%, 49%)
CMYKcmyk(75.4%, 64.3%, 0%, 50.6%)
CIE-LABlab(22.56, 24.42, -47.52)
CIE-LCHlch(22.56, 53.42, 297.20°)
OKLaboklab(34.2% -0.0003 -0.1372)
OKLCHoklch(34.2% 0.137 269.9)
XYZxyz(5.2681, 3.6739, 20.1661)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D7E #7E701F
analogous
#1F5C7E #1F2D7E #401F7E
triadic
#1F2D7E #7E1F2D #2D7E1F
tetradic
#1F2D7E #7E1F5C #7E701F #1F7E40
square
#1F2D7E #7E1F5C #7E701F #1F7E40
split-complementary
#1F2D7E #7E401F #5C7E1F
monochromatic
#070A1C #131B4D #1F2D7E #2B3FAF #465AD1

Accessibility & contrast

On white

12.11
#1F2D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F2D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D7E
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D7E#FFFFFF#000000##FFFFFF
##1F2D7E1.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A81
Deuteranopia (green-blind)
#00327C
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2d7e;
/* rgb */ color: rgb(31, 45, 126);
/* oklch */ color: oklch(34.2% 0.137 269.9);
Tailwind
colors: {
  custom: {
    50: '#6a65a4',
    500: '#1f2d7e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d7e;
$custom-light: #6a65a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d7e",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 231.158,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.34202,
    "c": 0.13725,
    "h": 269.9
  },
  "luminance": 0.03674
}

Semantic roles & 50–950 ramp

primary
#1F2D7E
secondary
#B1A248
accent
#CC44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1F2D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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