#1F438B#1F438B

#1F438B is a dark, vivid blue. Relative luminance 0.062; OKLCH L 40.0% C 0.127 H 262.3°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#1F438B
RGBrgb(31, 67, 139)
HSLhsl(220, 64%, 33%)
HSVhsv(220, 78%, 55%)
CMYKcmyk(77.7%, 51.8%, 0%, 45.5%)
CIE-LABlab(29.83, 14.30, -43.82)
CIE-LCHlch(29.83, 46.09, 288.07°)
OKLaboklab(40% -0.0171 -0.126)
OKLCHoklch(40% 0.127 262.3)
XYZxyz(7.2308, 6.1689, 25.2307)
Luminance0.0617 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F438B #8B671F
analogous
#1F798B #1F438B #311F8B
triadic
#1F438B #8B1F43 #438B1F
tetradic
#1F438B #8B1F79 #8B671F #1F8B31
square
#1F438B #8B1F79 #8B671F #1F8B31
split-complementary
#1F438B #8B311F #798B1F
monochromatic
#091327 #142B59 #1F438B #2A5BBD #4D7BD7

Accessibility & contrast

On white

9.40
#1F438B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F438B
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F438B#FFFFFF#000000##FFFFFF
##1F438B1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164C8E
Deuteranopia (green-blind)
#00428A
Tritanopia (blue-blind)
#005460
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #1f438b;
/* rgb */ color: rgb(31, 67, 139);
/* oklch */ color: oklch(40.0% 0.127 262.3);
Tailwind
colors: {
  custom: {
    50: '#6b76ad',
    500: '#1f438b',
    950: '#000000',
  },
}
SCSS
$custom: #1f438b;
$custom-light: #6b76ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f438b",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 139
  },
  "hsl": {
    "h": 220,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39998,
    "c": 0.12718,
    "h": 262.3
  },
  "luminance": 0.0617
}

Semantic roles & 50–950 ramp

primary
#1F438B
secondary
#BA954C
accent
#AF41E7
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F438B

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

Preview Lab → · Contrast checker → · Palette generator →

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