#1F2D7D#1F2D7D

#1F2D7D is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.1% C 0.136 H 269.9°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#1F2D7D
RGBrgb(31, 45, 125)
HSLhsl(231, 60%, 31%)
HSVhsv(231, 75%, 49%)
CMYKcmyk(75.2%, 64%, 0%, 51%)
CIE-LABlab(22.47, 24.03, -47.03)
CIE-LCHlch(22.47, 52.81, 297.06°)
OKLaboklab(34.11% -0.0002 -0.1358)
OKLCHoklch(34.11% 0.136 269.9)
XYZxyz(5.2039, 3.6482, 19.8280)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D7D #7D6F1F
analogous
#1F5C7D #1F2D7D #401F7D
triadic
#1F2D7D #7D1F2D #2D7D1F
tetradic
#1F2D7D #7D1F5C #7D6F1F #1F7D40
square
#1F2D7D #7D1F5C #7D6F1F #1F7D40
split-complementary
#1F2D7D #7D401F #5C7D1F
monochromatic
#070A1B #131B4C #1F2D7D #2B3FAE #455AD1

Accessibility & contrast

On white

12.14
#1F2D7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2D7D
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D7D#FFFFFF#000000##FFFFFF
##1F2D7D1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A80
Deuteranopia (green-blind)
#00317B
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2d7d;
/* rgb */ color: rgb(31, 45, 125);
/* oklch */ color: oklch(34.1% 0.136 269.9);
Tailwind
colors: {
  custom: {
    50: '#6965a3',
    500: '#1f2d7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d7d;
$custom-light: #6965a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d7d",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 125
  },
  "hsl": {
    "h": 231.064,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.34107,
    "c": 0.13583,
    "h": 269.9
  },
  "luminance": 0.03649
}

Semantic roles & 50–950 ramp

primary
#1F2D7D
secondary
#B0A148
accent
#CC44E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1F2D7D

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

Preview Lab → · Contrast checker → · Palette generator →

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