#1F3E8B#1F3E8B

#1F3E8B is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.9% C 0.134 H 264.4°. Best body text is #FFFFFF at 9.90:1 contrast (WCAG AA passes).

Color values

HEX#1F3E8B
RGBrgb(31, 62, 139)
HSLhsl(223, 64%, 33%)
HSVhsv(223, 78%, 55%)
CMYKcmyk(77.7%, 55.4%, 0%, 45.5%)
CIE-LABlab(28.38, 17.75, -46.17)
CIE-LCHlch(28.38, 49.47, 291.03°)
OKLaboklab(38.89% -0.013 -0.133)
OKLCHoklch(38.89% 0.134 264.4)
XYZxyz(6.9462, 5.5999, 25.1359)
Luminance0.0560 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3E8B #8B6C1F
analogous
#1F748B #1F3E8B #361F8B
triadic
#1F3E8B #8B1F3E #3E8B1F
tetradic
#1F3E8B #8B1F74 #8B6C1F #1F8B36
square
#1F3E8B #8B1F74 #8B6C1F #1F8B36
split-complementary
#1F3E8B #8B361F #748B1F
monochromatic
#091127 #142859 #1F3E8B #2A54BD #4D75D7

Accessibility & contrast

On white

9.90
#1F3E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#1F3E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3E8B
9.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3E8B#FFFFFF#000000##FFFFFF
##1F3E8B1.009.902.129.90
#FFFFFF9.901.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1f3e8b;
/* rgb */ color: rgb(31, 62, 139);
/* oklch */ color: oklch(38.9% 0.134 264.4);
Tailwind
colors: {
  custom: {
    50: '#6c72ad',
    500: '#1f3e8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f3e8b;
$custom-light: #6c72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3e8b",
  "rgb": {
    "r": 31,
    "g": 62,
    "b": 139
  },
  "hsl": {
    "h": 222.778,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38893,
    "c": 0.13368,
    "h": 264.4
  },
  "luminance": 0.05601
}

Semantic roles & 50–950 ramp

primary
#1F3E8B
secondary
#BA9A4C
accent
#B741E7
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1F3E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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