#1F339E#1F339E

#1F339E is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.4% C 0.174 H 268.2°. Best body text is #FFFFFF at 10.37:1 contrast (WCAG AA passes).

Color values

HEX#1F339E
RGBrgb(31, 51, 158)
HSLhsl(231, 67%, 37%)
HSVhsv(231, 80%, 62%)
CMYKcmyk(80.4%, 67.7%, 0%, 38%)
CIE-LABlab(27.09, 32.63, -59.93)
CIE-LCHlch(27.09, 68.23, 298.57°)
OKLaboklab(38.45% -0.0056 -0.1735)
OKLCHoklch(38.45% 0.174 268.2)
XYZxyz(7.9183, 5.1267, 32.9133)
Luminance0.0513 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F339E #9E8A1F
analogous
#1F739E #1F339E #4A1F9E
triadic
#1F339E #9E1F33 #339E1F
tetradic
#1F339E #9E1F73 #9E8A1F #1F9E4A
square
#1F339E #9E1F73 #9E8A1F #1F9E4A
split-complementary
#1F339E #9E4A1F #739E1F
monochromatic
#0B1238 #15226B #1F339E #2944D1 #596EDE

Accessibility & contrast

On white

10.37
#1F339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#1F339E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F339E
10.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F339E#FFFFFF#000000##FFFFFF
##1F339E1.0010.372.0310.37
#FFFFFF10.371.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A1
Deuteranopia (green-blind)
#003A9C
Tritanopia (blue-blind)
#005064
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f339e;
/* rgb */ color: rgb(31, 51, 158);
/* oklch */ color: oklch(38.4% 0.174 268.2);
Tailwind
colors: {
  custom: {
    50: '#726abc',
    500: '#1f339e',
    950: '#000000',
  },
}
SCSS
$custom: #1f339e;
$custom-light: #726abc;
$custom-dark: #000000;
JSON
{
  "hex": "#1f339e",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 230.551,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.38446,
    "c": 0.17362,
    "h": 268.2
  },
  "luminance": 0.05128
}

Semantic roles & 50–950 ramp

primary
#1F339E
secondary
#C2B156
accent
#CF3EEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F339E

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

Preview Lab → · Contrast checker → · Palette generator →

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