#1F348D#1F348D

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

Color values

HEX#1F348D
RGBrgb(31, 52, 141)
HSLhsl(229, 64%, 34%)
HSVhsv(229, 78%, 55%)
CMYKcmyk(78%, 63.1%, 0%, 44.7%)
CIE-LABlab(25.77, 25.45, -51.66)
CIE-LCHlch(25.77, 57.59, 296.23°)
OKLaboklab(36.99% -0.0055 -0.1493)
OKLCHoklch(36.99% 0.149 267.9)
XYZxyz(6.5991, 4.6696, 25.7477)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F348D #8D781F
analogous
#1F6B8D #1F348D #411F8D
triadic
#1F348D #8D1F34 #348D1F
tetradic
#1F348D #8D1F6B #8D781F #1F8D41
square
#1F348D #8D1F6B #8D781F #1F8D41
split-complementary
#1F348D #8D411F #6B8D1F
monochromatic
#090F29 #14215B #1F348D #2A47BF #4E69D8

Accessibility & contrast

On white

10.86
#1F348D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#1F348D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F348D
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F348D#FFFFFF#000000##FFFFFF
##1F348D1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004290
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f348d;
/* rgb */ color: rgb(31, 52, 141);
/* oklch */ color: oklch(37.0% 0.149 267.9);
Tailwind
colors: {
  custom: {
    50: '#6d6baf',
    500: '#1f348d',
    950: '#000000',
  },
}
SCSS
$custom: #1f348d;
$custom-light: #6d6baf;
$custom-dark: #000000;
JSON
{
  "hex": "#1f348d",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 141
  },
  "hsl": {
    "h": 228.545,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.36991,
    "c": 0.14941,
    "h": 267.9
  },
  "luminance": 0.0467
}

Semantic roles & 50–950 ramp

primary
#1F348D
secondary
#BBA64D
accent
#C741E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F348D

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

Preview Lab → · Contrast checker → · Palette generator →

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