#1F3D8B#1F3D8B

#1F3D8B is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.7% C 0.135 H 264.8°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#1F3D8B
RGBrgb(31, 61, 139)
HSLhsl(223, 64%, 33%)
HSVhsv(223, 78%, 55%)
CMYKcmyk(77.7%, 56.1%, 0%, 45.5%)
CIE-LABlab(28.09, 18.45, -46.64)
CIE-LCHlch(28.09, 50.15, 291.58°)
OKLaboklab(38.68% -0.0122 -0.1344)
OKLCHoklch(38.68% 0.135 264.8)
XYZxyz(6.8924, 5.4921, 25.1179)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3D8B #8B6D1F
analogous
#1F738B #1F3D8B #371F8B
triadic
#1F3D8B #8B1F3D #3D8B1F
tetradic
#1F3D8B #8B1F73 #8B6D1F #1F8B37
square
#1F3D8B #8B1F73 #8B6D1F #1F8B37
split-complementary
#1F3D8B #8B371F #738B1F
monochromatic
#091127 #142759 #1F3D8B #2A53BD #4D73D7

Accessibility & contrast

On white

10.01
#1F3D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#1F3D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3D8B
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3D8B#FFFFFF#000000##FFFFFF
##1F3D8B1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#00505E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3d8b;
/* rgb */ color: rgb(31, 61, 139);
/* oklch */ color: oklch(38.7% 0.135 264.8);
Tailwind
colors: {
  custom: {
    50: '#6c72ad',
    500: '#1f3d8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f3d8b;
$custom-light: #6c72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3d8b",
  "rgb": {
    "r": 31,
    "g": 61,
    "b": 139
  },
  "hsl": {
    "h": 223.333,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38676,
    "c": 0.13499,
    "h": 264.8
  },
  "luminance": 0.05493
}

Semantic roles & 50–950 ramp

primary
#1F3D8B
secondary
#BA9B4C
accent
#B941E7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F3D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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