#1F3E7D#1F3E7D

#1F3E7D is a dark, moderate blue. Relative luminance 0.052; OKLCH L 37.8% C 0.113 H 262.6°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#1F3E7D
RGBrgb(31, 62, 125)
HSLhsl(220, 60%, 31%)
HSVhsv(220, 75%, 49%)
CMYKcmyk(75.2%, 50.4%, 0%, 51%)
CIE-LABlab(27.34, 12.13, -39.13)
CIE-LCHlch(27.34, 40.97, 287.22°)
OKLaboklab(37.77% -0.0146 -0.1123)
OKLCHoklch(37.77% 0.113 262.6)
XYZxyz(5.9880, 5.2166, 20.0894)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E7D #7D5E1F
analogous
#1F6D7D #1F3E7D #2F1F7D
triadic
#1F3E7D #7D1F3E #3E7D1F
tetradic
#1F3E7D #7D1F6D #7D5E1F #1F7D2F
square
#1F3E7D #7D1F6D #7D5E1F #1F7D2F
split-complementary
#1F3E7D #7D2F1F #6D7D1F
monochromatic
#070D1B #13264C #1F3E7D #2B56AE #4573D1

Accessibility & contrast

On white

10.28
#1F3E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1F3E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E7D
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E7D#FFFFFF#000000##FFFFFF
##1F3E7D1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B457F
Deuteranopia (green-blind)
#003D7C
Tritanopia (blue-blind)
#004D57
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f3e7d;
/* rgb */ color: rgb(31, 62, 125);
/* oklch */ color: oklch(37.8% 0.113 262.6);
Tailwind
colors: {
  custom: {
    50: '#6872a3',
    500: '#1f3e7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e7d;
$custom-light: #6872a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e7d",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 125
  },
  "hsl": {
    "h": 220.213,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.37774,
    "c": 0.11327,
    "h": 262.6
  },
  "luminance": 0.05217
}

Semantic roles & 50–950 ramp

primary
#1F3E7D
secondary
#B08E48
accent
#AF44E3
background
#F6F6FA
surface
#EBECF4
border
#C6C7CE
text
#07080F
muted
#7A7B7F

Preview Lab

Preview with #1F3E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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