#1F438D#1F438D

#1F438D is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.2% C 0.130 H 262.6°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#1F438D
RGBrgb(31, 67, 141)
HSLhsl(220, 64%, 34%)
HSVhsv(220, 78%, 55%)
CMYKcmyk(78%, 52.5%, 0%, 44.7%)
CIE-LABlab(29.98, 15.10, -44.82)
CIE-LCHlch(29.98, 47.29, 288.62°)
OKLaboklab(40.16% -0.0168 -0.129)
OKLCHoklch(40.16% 0.13 262.6)
XYZxyz(7.3782, 6.2279, 26.0074)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F438D #8D691F
analogous
#1F7A8D #1F438D #321F8D
triadic
#1F438D #8D1F43 #438D1F
tetradic
#1F438D #8D1F7A #8D691F #1F8D32
square
#1F438D #8D1F7A #8D691F #1F8D32
split-complementary
#1F438D #8D321F #7A8D1F
monochromatic
#091329 #142B5B #1F438D #2A5BBF #4E7BD8

Accessibility & contrast

On white

9.35
#1F438D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#1F438D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F438D
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F438D#FFFFFF#000000##FFFFFF
##1F438D1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134C90
Deuteranopia (green-blind)
#00428C
Tritanopia (blue-blind)
#005561
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f438d;
/* rgb */ color: rgb(31, 67, 141);
/* oklch */ color: oklch(40.2% 0.130 262.6);
Tailwind
colors: {
  custom: {
    50: '#6c76af',
    500: '#1f438d',
    950: '#000000',
  },
}
SCSS
$custom: #1f438d;
$custom-light: #6c76af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f438d",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 141
  },
  "hsl": {
    "h": 220.364,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.40156,
    "c": 0.13005,
    "h": 262.6
  },
  "luminance": 0.06229
}

Semantic roles & 50–950 ramp

primary
#1F438D
secondary
#BB974D
accent
#B141E7
background
#F7F7FA
surface
#EDEDF4
border
#C8C8CE
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #1F438D

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

Preview Lab → · Contrast checker → · Palette generator →

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