#1F349E#1F349E

#1F349E is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.6% C 0.172 H 268.0°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#1F349E
RGBrgb(31, 52, 158)
HSLhsl(230, 67%, 37%)
HSVhsv(230, 80%, 62%)
CMYKcmyk(80.4%, 67.1%, 0%, 38%)
CIE-LABlab(27.34, 31.97, -59.52)
CIE-LCHlch(27.34, 67.57, 298.24°)
OKLaboklab(38.63% -0.0061 -0.1723)
OKLCHoklch(38.63% 0.172 268)
XYZxyz(7.9625, 5.2150, 32.9281)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F349E #9E891F
analogous
#1F749E #1F349E #4A1F9E
triadic
#1F349E #9E1F34 #349E1F
tetradic
#1F349E #9E1F74 #9E891F #1F9E4A
square
#1F349E #9E1F74 #9E891F #1F9E4A
split-complementary
#1F349E #9E4A1F #749E1F
monochromatic
#0B1238 #15236B #1F349E #2945D1 #596FDE

Accessibility & contrast

On white

10.28
#1F349E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1F349E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F349E
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F349E#FFFFFF#000000##FFFFFF
##1F349E1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047A1
Deuteranopia (green-blind)
#003B9C
Tritanopia (blue-blind)
#005164
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #1f349e;
/* rgb */ color: rgb(31, 52, 158);
/* oklch */ color: oklch(38.6% 0.172 268.0);
Tailwind
colors: {
  custom: {
    50: '#716bbc',
    500: '#1f349e',
    950: '#000000',
  },
}
SCSS
$custom: #1f349e;
$custom-light: #716bbc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f349e",
  "rgb": {
    "r": 31,
    "g": 52,
    "b": 158
  },
  "hsl": {
    "h": 230.079,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38626,
    "c": 0.17245,
    "h": 268
  },
  "luminance": 0.05216
}

Semantic roles & 50–950 ramp

primary
#1F349E
secondary
#C2B056
accent
#CE3EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F349E

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

Preview Lab → · Contrast checker → · Palette generator →

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