#1F348C#1F348C

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

Color values

HEX#1F348C
RGBrgb(31, 52, 140)
HSLhsl(228, 64%, 34%)
HSVhsv(228, 78%, 55%)
CMYKcmyk(77.9%, 62.9%, 0%, 45.1%)
CIE-LABlab(25.68, 25.06, -51.18)
CIE-LCHlch(25.68, 56.99, 296.09°)
OKLaboklab(36.9% -0.0055 -0.1479)
OKLCHoklch(36.9% 0.148 267.9)
XYZxyz(6.5250, 4.6400, 25.3576)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F348C #8C771F
analogous
#1F6A8C #1F348C #401F8C
triadic
#1F348C #8C1F34 #348C1F
tetradic
#1F348C #8C1F6A #8C771F #1F8C40
square
#1F348C #8C1F6A #8C771F #1F8C40
split-complementary
#1F348C #8C401F #6A8C1F
monochromatic
#090F28 #14215A #1F348C #2A47BE #4E68D8

Accessibility & contrast

On white

10.89
#1F348C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F348C
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F348C#FFFFFF#000000##FFFFFF
##1F348C1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#004B5B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f348c;
/* rgb */ color: rgb(31, 52, 140);
/* oklch */ color: oklch(36.9% 0.148 267.9);
Tailwind
colors: {
  custom: {
    50: '#6d6bae',
    500: '#1f348c',
    950: '#000000',
  },
}
SCSS
$custom: #1f348c;
$custom-light: #6d6bae;
$custom-dark: #000000;
JSON
{
  "hex": "#1f348c",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 140
  },
  "hsl": {
    "h": 228.44,
    "s": 63.743,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36898,
    "c": 0.14802,
    "h": 267.9
  },
  "luminance": 0.04641
}

Semantic roles & 50–950 ramp

primary
#1F348C
secondary
#BBA54C
accent
#C741E7
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F348C

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

Preview Lab → · Contrast checker → · Palette generator →

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