#1F348F#1F348F

#1F348F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.152 H 267.9°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#1F348F
RGBrgb(31, 52, 143)
HSLhsl(229, 64%, 34%)
HSVhsv(229, 78%, 56%)
CMYKcmyk(78.3%, 63.6%, 0%, 43.9%)
CIE-LABlab(25.95, 26.23, -52.60)
CIE-LCHlch(25.95, 58.78, 296.50°)
OKLaboklab(37.18% -0.0055 -0.1521)
OKLCHoklch(37.18% 0.152 267.9)
XYZxyz(6.7493, 4.7297, 26.5385)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F348F #8F7A1F
analogous
#1F6C8F #1F348F #421F8F
triadic
#1F348F #8F1F34 #348F1F
tetradic
#1F348F #8F1F6C #8F7A1F #1F8F42
square
#1F348F #8F1F6C #8F7A1F #1F8F42
split-complementary
#1F348F #8F421F #6C8F1F
monochromatic
#090F2A #14225D #1F348F #2A46C1 #4F69D9

Accessibility & contrast

On white

10.79
#1F348F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1F348F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F348F
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F348F#FFFFFF#000000##FFFFFF
##1F348F1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#00388D
Tritanopia (blue-blind)
#004C5C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f348f;
/* rgb */ color: rgb(31, 52, 143);
/* oklch */ color: oklch(37.2% 0.152 267.9);
Tailwind
colors: {
  custom: {
    50: '#6e6bb1',
    500: '#1f348f',
    950: '#000000',
  },
}
SCSS
$custom: #1f348f;
$custom-light: #6e6bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f348f",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 143
  },
  "hsl": {
    "h": 228.75,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.37179,
    "c": 0.15219,
    "h": 267.9
  },
  "luminance": 0.0473
}

Semantic roles & 50–950 ramp

primary
#1F348F
secondary
#BCA74E
accent
#C840E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1F348F

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

Preview Lab → · Contrast checker → · Palette generator →

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