#1F347D#1F347D

#1F347D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.5% C 0.127 H 267.4°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#1F347D
RGBrgb(31, 52, 125)
HSLhsl(227, 60%, 31%)
HSVhsv(227, 75%, 49%)
CMYKcmyk(75.2%, 58.4%, 0%, 51%)
CIE-LABlab(24.41, 19.14, -43.87)
CIE-LCHlch(24.41, 47.87, 293.57°)
OKLaboklab(35.55% -0.0058 -0.1265)
OKLCHoklch(35.55% 0.127 267.4)
XYZxyz(5.4935, 4.2274, 19.9245)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F347D #7D681F
analogous
#1F637D #1F347D #391F7D
triadic
#1F347D #7D1F34 #347D1F
tetradic
#1F347D #7D1F63 #7D681F #1F7D39
square
#1F347D #7D1F63 #7D681F #1F7D39
split-complementary
#1F347D #7D391F #637D1F
monochromatic
#070B1B #13204C #1F347D #2B48AE #4565D1

Accessibility & contrast

On white

11.38
#1F347D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1F347D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F347D
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F347D#FFFFFF#000000##FFFFFF
##1F347D1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E7F
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#004653
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f347d;
/* rgb */ color: rgb(31, 52, 125);
/* oklch */ color: oklch(35.5% 0.127 267.4);
Tailwind
colors: {
  custom: {
    50: '#696ba3',
    500: '#1f347d',
    950: '#000000',
  },
}
SCSS
$custom: #1f347d;
$custom-light: #696ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f347d",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 125
  },
  "hsl": {
    "h": 226.596,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3555,
    "c": 0.1266,
    "h": 267.4
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#1F347D
secondary
#B09948
accent
#C044E3
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F347D

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

Preview Lab → · Contrast checker → · Palette generator →

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