#1F339C#1F339C

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

Color values

HEX#1F339C
RGBrgb(31, 51, 156)
HSLhsl(230, 67%, 37%)
HSVhsv(230, 80%, 61%)
CMYKcmyk(80.1%, 67.3%, 0%, 38.8%)
CIE-LABlab(26.90, 31.88, -59.03)
CIE-LCHlch(26.90, 67.08, 298.37°)
OKLaboklab(38.25% -0.0054 -0.1709)
OKLCHoklch(38.25% 0.171 268.2)
XYZxyz(7.7476, 5.0584, 32.0141)
Luminance0.0506 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F339C #9C881F
analogous
#1F729C #1F339C #4A1F9C
triadic
#1F339C #9C1F33 #339C1F
tetradic
#1F339C #9C1F72 #9C881F #1F9C4A
square
#1F339C #9C1F72 #9C881F #1F9C4A
split-complementary
#1F339C #9C4A1F #729C1F
monochromatic
#0B1236 #152269 #1F339C #2944CF #586DDE

Accessibility & contrast

On white

10.44
#1F339C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F339C
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F339C#FFFFFF#000000##FFFFFF
##1F339C1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469F
Deuteranopia (green-blind)
#003A9A
Tritanopia (blue-blind)
#004F63
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1f339c;
/* rgb */ color: rgb(31, 51, 156);
/* oklch */ color: oklch(38.2% 0.171 268.2);
Tailwind
colors: {
  custom: {
    50: '#716aba',
    500: '#1f339c',
    950: '#000000',
  },
}
SCSS
$custom: #1f339c;
$custom-light: #716aba;
$custom-dark: #000000;
JSON
{
  "hex": "#1f339c",
  "rgb": {
    "r": 31,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 230.4,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.38247,
    "c": 0.17098,
    "h": 268.2
  },
  "luminance": 0.05059
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F339C

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

Preview Lab → · Contrast checker → · Palette generator →

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