#1F339B#1F339B

#1F339B is a dark, vivid blue. Relative luminance 0.050; OKLCH L 38.1% C 0.170 H 268.2°. Best body text is #FFFFFF at 10.47:1 contrast (WCAG AA passes).

Color values

HEX#1F339B
RGBrgb(31, 51, 155)
HSLhsl(230, 67%, 36%)
HSVhsv(230, 80%, 61%)
CMYKcmyk(80%, 67.1%, 0%, 39.2%)
CIE-LABlab(26.80, 31.50, -58.57)
CIE-LCHlch(26.80, 66.51, 298.27°)
OKLaboklab(38.15% -0.0054 -0.1696)
OKLCHoklch(38.15% 0.17 268.2)
XYZxyz(7.6632, 5.0246, 31.5700)
Luminance0.0503 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F339B #9B871F
analogous
#1F719B #1F339B #491F9B
triadic
#1F339B #9B1F33 #339B1F
tetradic
#1F339B #9B1F71 #9B871F #1F9B49
square
#1F339B #9B1F71 #9B871F #1F9B49
split-complementary
#1F339B #9B491F #719B1F
monochromatic
#0B1135 #152268 #1F339B #2944CE #576DDD

Accessibility & contrast

On white

10.47
#1F339B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#1F339B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F339B
10.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F339B#FFFFFF#000000##FFFFFF
##1F339B1.0010.472.0110.47
#FFFFFF10.471.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459E
Deuteranopia (green-blind)
#003A99
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f339b;
/* rgb */ color: rgb(31, 51, 155);
/* oklch */ color: oklch(38.1% 0.170 268.2);
Tailwind
colors: {
  custom: {
    50: '#716ab9',
    500: '#1f339b',
    950: '#000000',
  },
}
SCSS
$custom: #1f339b;
$custom-light: #716ab9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f339b",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 230.323,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.38148,
    "c": 0.16966,
    "h": 268.2
  },
  "luminance": 0.05026
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F339B

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

Preview Lab → · Contrast checker → · Palette generator →

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