#1F3C8B#1F3C8B

#1F3C8B is a dark, vivid blue. Relative luminance 0.054; OKLCH L 38.5% C 0.136 H 265.2°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#1F3C8B
RGBrgb(31, 60, 139)
HSLhsl(224, 64%, 33%)
HSVhsv(224, 78%, 55%)
CMYKcmyk(77.7%, 56.8%, 0%, 45.5%)
CIE-LABlab(27.81, 19.14, -47.10)
CIE-LCHlch(27.81, 50.84, 292.12°)
OKLaboklab(38.46% -0.0114 -0.1358)
OKLCHoklch(38.46% 0.136 265.2)
XYZxyz(6.8395, 5.3863, 25.1003)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3C8B #8B6E1F
analogous
#1F728B #1F3C8B #381F8B
triadic
#1F3C8B #8B1F3C #3C8B1F
tetradic
#1F3C8B #8B1F72 #8B6E1F #1F8B38
square
#1F3C8B #8B1F72 #8B6E1F #1F8B38
split-complementary
#1F3C8B #8B381F #728B1F
monochromatic
#091127 #142659 #1F3C8B #2A52BD #4D72D7

Accessibility & contrast

On white

10.11
#1F3C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F3C8B
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3C8B#FFFFFF#000000##FFFFFF
##1F3C8B1.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00478E
Deuteranopia (green-blind)
#003D89
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #1f3c8b;
/* rgb */ color: rgb(31, 60, 139);
/* oklch */ color: oklch(38.5% 0.136 265.2);
Tailwind
colors: {
  custom: {
    50: '#6c71ae',
    500: '#1f3c8b',
    950: '#000000',
  },
}
SCSS
$custom: #1f3c8b;
$custom-light: #6c71ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3c8b",
  "rgb": {
    "r": 31,
    "g": 60,
    "b": 139
  },
  "hsl": {
    "h": 223.889,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.38461,
    "c": 0.13629,
    "h": 265.2
  },
  "luminance": 0.05387
}

Semantic roles & 50–950 ramp

primary
#1F3C8B
secondary
#BA9C4C
accent
#BA41E7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F

Preview Lab

Preview with #1F3C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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