#1F347E#1F347E

#1F347E is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.6% C 0.128 H 267.4°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#1F347E
RGBrgb(31, 52, 126)
HSLhsl(227, 61%, 31%)
HSVhsv(227, 75%, 49%)
CMYKcmyk(75.4%, 58.7%, 0%, 50.6%)
CIE-LABlab(24.49, 19.54, -44.37)
CIE-LCHlch(24.49, 48.48, 293.76°)
OKLaboklab(35.64% -0.0058 -0.1279)
OKLCHoklch(35.64% 0.128 267.4)
XYZxyz(5.5577, 4.2531, 20.2626)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F347E #7E691F
analogous
#1F637E #1F347E #391F7E
triadic
#1F347E #7E1F34 #347E1F
tetradic
#1F347E #7E1F63 #7E691F #1F7E39
square
#1F347E #7E1F63 #7E691F #1F7E39
split-complementary
#1F347E #7E391F #637E1F
monochromatic
#070B1C #13204D #1F347E #2B48AF #4665D1

Accessibility & contrast

On white

11.35
#1F347E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F347E
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F347E#FFFFFF#000000##FFFFFF
##1F347E1.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f347e;
/* rgb */ color: rgb(31, 52, 126);
/* oklch */ color: oklch(35.6% 0.128 267.4);
Tailwind
colors: {
  custom: {
    50: '#696ba4',
    500: '#1f347e',
    950: '#000000',
  },
}
SCSS
$custom: #1f347e;
$custom-light: #696ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f347e",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 126
  },
  "hsl": {
    "h": 226.737,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.35637,
    "c": 0.12806,
    "h": 267.4
  },
  "luminance": 0.04254
}

Semantic roles & 50–950 ramp

primary
#1F347E
secondary
#B19A48
accent
#C044E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F347E

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

Preview Lab → · Contrast checker → · Palette generator →

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