#1F438F#1F438F

#1F438F is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.3% C 0.133 H 262.8°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#1F438F
RGBrgb(31, 67, 143)
HSLhsl(221, 64%, 34%)
HSVhsv(221, 78%, 56%)
CMYKcmyk(78.3%, 53.1%, 0%, 43.9%)
CIE-LABlab(30.13, 15.90, -45.81)
CIE-LCHlch(30.13, 48.49, 289.15°)
OKLaboklab(40.32% -0.0166 -0.1319)
OKLCHoklch(40.32% 0.133 262.8)
XYZxyz(7.5284, 6.2879, 26.7982)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F438F #8F6B1F
analogous
#1F7B8F #1F438F #331F8F
triadic
#1F438F #8F1F43 #438F1F
tetradic
#1F438F #8F1F7B #8F6B1F #1F8F33
square
#1F438F #8F1F7B #8F6B1F #1F8F33
split-complementary
#1F438F #8F331F #7B8F1F
monochromatic
#09142A #142B5D #1F438F #2A5BC1 #4F7CD9

Accessibility & contrast

On white

9.30
#1F438F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#1F438F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F438F
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F438F#FFFFFF#000000##FFFFFF
##1F438F1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4C92
Deuteranopia (green-blind)
#00428D
Tritanopia (blue-blind)
#005562
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #1f438f;
/* rgb */ color: rgb(31, 67, 143);
/* oklch */ color: oklch(40.3% 0.133 262.8);
Tailwind
colors: {
  custom: {
    50: '#6c76b0',
    500: '#1f438f',
    950: '#000000',
  },
}
SCSS
$custom: #1f438f;
$custom-light: #6c76b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f438f",
  "rgb": {
    "r": 31,
    "g": 67,
    "b": 143
  },
  "hsl": {
    "h": 220.714,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.40315,
    "c": 0.13292,
    "h": 262.8
  },
  "luminance": 0.06289
}

Semantic roles & 50–950 ramp

primary
#1F438F
secondary
#BC994E
accent
#B240E7
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1F438F

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

Preview Lab → · Contrast checker → · Palette generator →

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