#1F348A#1F348A

#1F348A is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.7% C 0.145 H 267.8°. Best body text is #FFFFFF at 10.96:1 contrast (WCAG AA passes).

Color values

HEX#1F348A
RGBrgb(31, 52, 138)
HSLhsl(228, 63%, 33%)
HSVhsv(228, 78%, 54%)
CMYKcmyk(77.5%, 62.3%, 0%, 45.9%)
CIE-LABlab(25.51, 24.28, -50.23)
CIE-LCHlch(25.51, 55.79, 295.80°)
OKLaboklab(36.71% -0.0055 -0.1451)
OKLCHoklch(36.71% 0.145 267.8)
XYZxyz(6.3789, 4.5816, 24.5880)
Luminance0.0458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F348A #8A751F
analogous
#1F698A #1F348A #3F1F8A
triadic
#1F348A #8A1F34 #348A1F
tetradic
#1F348A #8A1F69 #8A751F #1F8A3F
square
#1F348A #8A1F69 #8A751F #1F8A3F
split-complementary
#1F348A #8A3F1F #698A1F
monochromatic
#090E26 #142158 #1F348A #2A47BC #4C68D7

Accessibility & contrast

On white

10.96
#1F348A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#1F348A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F348A
10.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F348A#FFFFFF#000000##FFFFFF
##1F348A1.0010.961.9210.96
#FFFFFF10.961.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#004A59
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f348a;
/* rgb */ color: rgb(31, 52, 138);
/* oklch */ color: oklch(36.7% 0.145 267.8);
Tailwind
colors: {
  custom: {
    50: '#6c6bad',
    500: '#1f348a',
    950: '#000000',
  },
}
SCSS
$custom: #1f348a;
$custom-light: #6c6bad;
$custom-dark: #000000;
JSON
{
  "hex": "#1f348a",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 138
  },
  "hsl": {
    "h": 228.224,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.36713,
    "c": 0.14522,
    "h": 267.8
  },
  "luminance": 0.04582
}

Semantic roles & 50–950 ramp

primary
#1F348A
secondary
#BAA44B
accent
#C641E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F348A

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

Preview Lab → · Contrast checker → · Palette generator →

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