#1F347F#1F347F

#1F347F is a dark, vivid blue. Relative luminance 0.043; OKLCH L 35.7% C 0.130 H 267.5°. Best body text is #FFFFFF at 11.31:1 contrast (WCAG AA passes).

Color values

HEX#1F347F
RGBrgb(31, 52, 127)
HSLhsl(227, 61%, 31%)
HSVhsv(227, 76%, 50%)
CMYKcmyk(75.6%, 59.1%, 0%, 50.2%)
CIE-LABlab(24.57, 19.94, -44.87)
CIE-LCHlch(24.57, 49.10, 293.96°)
OKLaboklab(35.72% -0.0057 -0.1294)
OKLCHoklch(35.72% 0.13 267.5)
XYZxyz(5.6225, 4.2790, 20.6042)
Luminance0.0428 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F347F #7F6A1F
analogous
#1F647F #1F347F #3A1F7F
triadic
#1F347F #7F1F34 #347F1F
tetradic
#1F347F #7F1F64 #7F6A1F #1F7F3A
square
#1F347F #7F1F64 #7F6A1F #1F7F3A
split-complementary
#1F347F #7F3A1F #647F1F
monochromatic
#070C1D #13204E #1F347F #2B48B0 #4665D2

Accessibility & contrast

On white

11.31
#1F347F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#1F347F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F347F
11.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F347F#FFFFFF#000000##FFFFFF
##1F347F1.0011.311.8611.31
#FFFFFF11.311.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F82
Deuteranopia (green-blind)
#00367E
Tritanopia (blue-blind)
#004754
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f347f;
/* rgb */ color: rgb(31, 52, 127);
/* oklch */ color: oklch(35.7% 0.130 267.5);
Tailwind
colors: {
  custom: {
    50: '#696ba5',
    500: '#1f347f',
    950: '#000000',
  },
}
SCSS
$custom: #1f347f;
$custom-light: #696ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f347f",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 127
  },
  "hsl": {
    "h": 226.875,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.35724,
    "c": 0.12952,
    "h": 267.5
  },
  "luminance": 0.0428
}

Semantic roles & 50–950 ramp

primary
#1F347F
secondary
#B29B48
accent
#C144E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F347F

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

Preview Lab → · Contrast checker → · Palette generator →

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