#1F438A#1F438A

#1F438A is a dark, vivid blue. Relative luminance 0.061; OKLCH L 39.9% C 0.126 H 262.1°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#1F438A
RGBrgb(31, 67, 138)
HSLhsl(220, 63%, 33%)
HSVhsv(220, 78%, 54%)
CMYKcmyk(77.5%, 51.4%, 0%, 45.9%)
CIE-LABlab(29.76, 13.90, -43.32)
CIE-LCHlch(29.76, 45.49, 287.79°)
OKLaboklab(39.92% -0.0172 -0.1246)
OKLCHoklch(39.92% 0.126 262.1)
XYZxyz(7.1580, 6.1398, 24.8477)
Luminance0.0614 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F438A #8A661F
analogous
#1F788A #1F438A #301F8A
triadic
#1F438A #8A1F43 #438A1F
tetradic
#1F438A #8A1F78 #8A661F #1F8A30
square
#1F438A #8A1F78 #8A661F #1F8A30
split-complementary
#1F438A #8A301F #788A1F
monochromatic
#091226 #142B58 #1F438A #2A5BBC #4C7BD7

Accessibility & contrast

On white

9.42
#1F438A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#1F438A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F438A
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F438A#FFFFFF#000000##FFFFFF
##1F438A1.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184B8D
Deuteranopia (green-blind)
#004189
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f438a;
/* rgb */ color: rgb(31, 67, 138);
/* oklch */ color: oklch(39.9% 0.126 262.1);
Tailwind
colors: {
  custom: {
    50: '#6b76ad',
    500: '#1f438a',
    950: '#000000',
  },
}
SCSS
$custom: #1f438a;
$custom-light: #6b76ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f438a",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 138
  },
  "hsl": {
    "h": 219.813,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.3992,
    "c": 0.12574,
    "h": 262.1
  },
  "luminance": 0.06141
}

Semantic roles & 50–950 ramp

primary
#1F438A
secondary
#BA944B
accent
#AF41E6
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F438A

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

Preview Lab → · Contrast checker → · Palette generator →

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