#1F2D7F#1F2D7F

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

Color values

HEX#1F2D7F
RGBrgb(31, 45, 127)
HSLhsl(231, 61%, 31%)
HSVhsv(231, 76%, 50%)
CMYKcmyk(75.6%, 64.6%, 0%, 50.2%)
CIE-LABlab(22.65, 24.81, -48.00)
CIE-LCHlch(22.65, 54.03, 297.33°)
OKLaboklab(34.3% -0.0003 -0.1387)
OKLCHoklch(34.3% 0.139 269.9)
XYZxyz(5.3329, 3.6998, 20.5076)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D7F #7F711F
analogous
#1F5D7F #1F2D7F #411F7F
triadic
#1F2D7F #7F1F2D #2D7F1F
tetradic
#1F2D7F #7F1F5D #7F711F #1F7F41
square
#1F2D7F #7F1F5D #7F711F #1F7F41
split-complementary
#1F2D7F #7F411F #5D7F1F
monochromatic
#070A1D #131C4E #1F2D7F #2B3EB0 #465BD2

Accessibility & contrast

On white

12.07
#1F2D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#1F2D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D7F
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D7F#FFFFFF#000000##FFFFFF
##1F2D7F1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2d7f;
/* rgb */ color: rgb(31, 45, 127);
/* oklch */ color: oklch(34.3% 0.139 269.9);
Tailwind
colors: {
  custom: {
    50: '#6a65a5',
    500: '#1f2d7f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d7f;
$custom-light: #6a65a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d7f",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 231.25,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.34296,
    "c": 0.13867,
    "h": 269.9
  },
  "luminance": 0.037
}

Semantic roles & 50–950 ramp

primary
#1F2D7F
secondary
#B2A348
accent
#CD44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1F2D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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