#1F3F8B#1F3F8B

#1F3F8B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.1% C 0.132 H 264.0°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#1F3F8B
RGBrgb(31, 63, 139)
HSLhsl(222, 64%, 33%)
HSVhsv(222, 78%, 55%)
CMYKcmyk(77.7%, 54.7%, 0%, 45.5%)
CIE-LABlab(28.67, 17.06, -45.71)
CIE-LCHlch(28.67, 48.79, 290.47°)
OKLaboklab(39.11% -0.0138 -0.1317)
OKLCHoklch(39.11% 0.132 264)
XYZxyz(7.0011, 5.7096, 25.1542)
Luminance0.0571 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3F8B #8B6B1F
analogous
#1F758B #1F3F8B #351F8B
triadic
#1F3F8B #8B1F3F #3F8B1F
tetradic
#1F3F8B #8B1F75 #8B6B1F #1F8B35
square
#1F3F8B #8B1F75 #8B6B1F #1F8B35
split-complementary
#1F3F8B #8B351F #758B1F
monochromatic
#091227 #142859 #1F3F8B #2A56BD #4D76D7

Accessibility & contrast

On white

9.80
#1F3F8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#1F3F8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3F8B
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3F8B#FFFFFF#000000##FFFFFF
##1F3F8B1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05498E
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1f3f8b;
/* rgb */ color: rgb(31, 63, 139);
/* oklch */ color: oklch(39.1% 0.132 264.0);
Tailwind
colors: {
  custom: {
    50: '#6c73ad',
    500: '#1f3f8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f3f8b;
$custom-light: #6c73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3f8b",
  "rgb": {
    "r": 31,
    "g": 63,
    "b": 139
  },
  "hsl": {
    "h": 222.222,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39111,
    "c": 0.13238,
    "h": 264
  },
  "luminance": 0.0571
}

Semantic roles & 50–950 ramp

primary
#1F3F8B
secondary
#BA994C
accent
#B641E7
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F3F8B

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

Preview Lab → · Contrast checker → · Palette generator →

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