#1F3D88#1F3D88

#1F3D88 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.4% C 0.131 H 264.5°. Best body text is #FFFFFF at 10.09:1 contrast (WCAG AA passes).

Color values

HEX#1F3D88
RGBrgb(31, 61, 136)
HSLhsl(223, 63%, 33%)
HSVhsv(223, 77%, 53%)
CMYKcmyk(77.2%, 55.1%, 0%, 46.7%)
CIE-LABlab(27.86, 17.25, -45.16)
CIE-LCHlch(27.86, 48.34, 290.90°)
OKLaboklab(38.43% -0.0124 -0.1301)
OKLCHoklch(38.43% 0.131 264.5)
XYZxyz(6.6762, 5.4056, 23.9793)
Luminance0.0541 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D88 #886A1F
analogous
#1F7188 #1F3D88 #351F88
triadic
#1F3D88 #881F3D #3D881F
tetradic
#1F3D88 #881F71 #886A1F #1F8835
square
#1F3D88 #881F71 #886A1F #1F8835
split-complementary
#1F3D88 #88351F #71881F
monochromatic
#081024 #142756 #1F3D88 #2A53BA #4B73D6

Accessibility & contrast

On white

10.09
#1F3D88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#1F3D88 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D88
10.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D88#FFFFFF#000000##FFFFFF
##1F3D881.0010.092.0810.09
#FFFFFF10.091.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03478B
Deuteranopia (green-blind)
#003D87
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3d88;
/* rgb */ color: rgb(31, 61, 136);
/* oklch */ color: oklch(38.4% 0.131 264.5);
Tailwind
colors: {
  custom: {
    50: '#6b72ab',
    500: '#1f3d88',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d88;
$custom-light: #6b72ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d88",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 136
  },
  "hsl": {
    "h": 222.857,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38427,
    "c": 0.13067,
    "h": 264.5
  },
  "luminance": 0.05406
}

Semantic roles & 50–950 ramp

primary
#1F3D88
secondary
#B9994A
accent
#B742E6
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1F3D88

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

Preview Lab → · Contrast checker → · Palette generator →

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