#1F3EAF#1F3EAF

#1F3EAF is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.1% C 0.183 H 266.2°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#1F3EAF
RGBrgb(31, 62, 175)
HSLhsl(227, 70%, 40%)
HSVhsv(227, 82%, 69%)
CMYKcmyk(82.3%, 64.6%, 0%, 31.4%)
CIE-LABlab(31.42, 31.83, -63.07)
CIE-LCHlch(31.42, 70.65, 296.78°)
OKLaboklab(42.11% -0.012 -0.1826)
OKLCHoklch(42.11% 0.183 266.2)
XYZxyz(10.0228, 6.8305, 41.3393)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3EAF #AF901F
analogous
#1F86AF #1F3EAF #481FAF
triadic
#1F3EAF #AF1F3E #3EAF1F
tetradic
#1F3EAF #AF1F86 #AF901F #1FAF48
square
#1F3EAF #AF1F86 #AF901F #1FAF48
split-complementary
#1F3EAF #AF481F #86AF1F
monochromatic
#0D1947 #162C7B #1F3EAF #3155DA #6580E4

Accessibility & contrast

On white

8.87
#1F3EAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#1F3EAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3EAF
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3EAF#FFFFFF#000000##FFFFFF
##1F3EAF1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#0043AD
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #1f3eaf;
/* rgb */ color: rgb(31, 62, 175);
/* oklch */ color: oklch(42.1% 0.183 266.2);
Tailwind
colors: {
  custom: {
    50: '#7573c8',
    500: '#1f3eaf',
    950: '#000000',
  },
}
SCSS
$custom: #1f3eaf;
$custom-light: #7573c8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3eaf",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 175
  },
  "hsl": {
    "h": 227.083,
    "s": 69.903,
    "l": 40.392
  },
  "oklch": {
    "l": 0.42105,
    "c": 0.183,
    "h": 266.2
  },
  "luminance": 0.06832
}

Semantic roles & 50–950 ramp

primary
#1F3EAF
secondary
#C9B261
accent
#C63BED
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0813
muted
#7C7B82

Preview Lab

Preview with #1F3EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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