#1F348E#1F348E

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

Color values

HEX#1F348E
RGBrgb(31, 52, 142)
HSLhsl(229, 64%, 34%)
HSVhsv(229, 78%, 56%)
CMYKcmyk(78.2%, 63.4%, 0%, 44.3%)
CIE-LABlab(25.86, 25.84, -52.13)
CIE-LCHlch(25.86, 58.18, 296.37°)
OKLaboklab(37.09% -0.0055 -0.1507)
OKLCHoklch(37.09% 0.151 267.9)
XYZxyz(6.6739, 4.6995, 26.1413)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F348E #8E791F
analogous
#1F6C8E #1F348E #421F8E
triadic
#1F348E #8E1F34 #348E1F
tetradic
#1F348E #8E1F6C #8E791F #1F8E42
square
#1F348E #8E1F6C #8E791F #1F8E42
split-complementary
#1F348E #8E421F #6C8E1F
monochromatic
#090F2A #14225C #1F348E #2A46C0 #4F69D9

Accessibility & contrast

On white

10.82
#1F348E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1F348E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F348E
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F348E#FFFFFF#000000##FFFFFF
##1F348E1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#00388C
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f348e;
/* rgb */ color: rgb(31, 52, 142);
/* oklch */ color: oklch(37.1% 0.151 267.9);
Tailwind
colors: {
  custom: {
    50: '#6d6bb0',
    500: '#1f348e',
    950: '#000000',
  },
}
SCSS
$custom: #1f348e;
$custom-light: #6d6bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f348e",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 142
  },
  "hsl": {
    "h": 228.649,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.37085,
    "c": 0.1508,
    "h": 267.9
  },
  "luminance": 0.047
}

Semantic roles & 50–950 ramp

primary
#1F348E
secondary
#BBA74D
accent
#C841E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1F348E

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

Preview Lab → · Contrast checker → · Palette generator →

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