#1F438C#1F438C

#1F438C is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.1% C 0.129 H 262.4°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#1F438C
RGBrgb(31, 67, 140)
HSLhsl(220, 64%, 34%)
HSVhsv(220, 78%, 55%)
CMYKcmyk(77.9%, 52.1%, 0%, 45.1%)
CIE-LABlab(29.91, 14.70, -44.32)
CIE-LCHlch(29.91, 46.69, 288.35°)
OKLaboklab(40.08% -0.0169 -0.1275)
OKLCHoklch(40.08% 0.129 262.4)
XYZxyz(7.3042, 6.1982, 25.6173)
Luminance0.0620 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F438C #8C681F
analogous
#1F798C #1F438C #311F8C
triadic
#1F438C #8C1F43 #438C1F
tetradic
#1F438C #8C1F79 #8C681F #1F8C31
square
#1F438C #8C1F79 #8C681F #1F8C31
split-complementary
#1F438C #8C311F #798C1F
monochromatic
#091328 #142B5A #1F438C #2A5BBE #4E7BD8

Accessibility & contrast

On white

9.38
#1F438C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#1F438C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F438C
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F438C#FFFFFF#000000##FFFFFF
##1F438C1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#154C8F
Deuteranopia (green-blind)
#00428B
Tritanopia (blue-blind)
#005561
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f438c;
/* rgb */ color: rgb(31, 67, 140);
/* oklch */ color: oklch(40.1% 0.129 262.4);
Tailwind
colors: {
  custom: {
    50: '#6c76ae',
    500: '#1f438c',
    950: '#000000',
  },
}
SCSS
$custom: #1f438c;
$custom-light: #6c76ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f438c",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 140
  },
  "hsl": {
    "h": 220.183,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.40077,
    "c": 0.12862,
    "h": 262.4
  },
  "luminance": 0.06199
}

Semantic roles & 50–950 ramp

primary
#1F438C
secondary
#BB964C
accent
#B041E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F438C

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

Preview Lab → · Contrast checker → · Palette generator →

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