#1F348B#1F348B

#1F348B is a dark, vivid blue. Relative luminance 0.046; OKLCH L 36.8% C 0.147 H 267.9°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#1F348B
RGBrgb(31, 52, 139)
HSLhsl(228, 64%, 33%)
HSVhsv(228, 78%, 55%)
CMYKcmyk(77.7%, 62.6%, 0%, 45.5%)
CIE-LABlab(25.60, 24.67, -50.70)
CIE-LCHlch(25.60, 56.39, 295.94°)
OKLaboklab(36.81% -0.0055 -0.1465)
OKLCHoklch(36.81% 0.147 267.9)
XYZxyz(6.4516, 4.6107, 24.9710)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F348B #8B761F
analogous
#1F6A8B #1F348B #401F8B
triadic
#1F348B #8B1F34 #348B1F
tetradic
#1F348B #8B1F6A #8B761F #1F8B40
square
#1F348B #8B1F6A #8B761F #1F8B40
split-complementary
#1F348B #8B401F #6A8B1F
monochromatic
#090F27 #142159 #1F348B #2A47BD #4D68D7

Accessibility & contrast

On white

10.92
#1F348B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F348B
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F348B#FFFFFF#000000##FFFFFF
##1F348B1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428E
Deuteranopia (green-blind)
#003889
Tritanopia (blue-blind)
#004A5A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f348b;
/* rgb */ color: rgb(31, 52, 139);
/* oklch */ color: oklch(36.8% 0.147 267.9);
Tailwind
colors: {
  custom: {
    50: '#6c6bae',
    500: '#1f348b',
    950: '#000000',
  },
}
SCSS
$custom: #1f348b;
$custom-light: #6c6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f348b",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 139
  },
  "hsl": {
    "h": 228.333,
    "s": 63.529,
    "l": 33.333
  },
  "oklch": {
    "l": 0.36806,
    "c": 0.14662,
    "h": 267.9
  },
  "luminance": 0.04611
}

Semantic roles & 50–950 ramp

primary
#1F348B
secondary
#BAA54C
accent
#C641E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F348B

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

Preview Lab → · Contrast checker → · Palette generator →

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