#1F3299#1F3299

#1F3299 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.8% C 0.168 H 268.4°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#1F3299
RGBrgb(31, 50, 153)
HSLhsl(231, 66%, 36%)
HSVhsv(231, 80%, 60%)
CMYKcmyk(79.7%, 67.3%, 0%, 40%)
CIE-LABlab(26.37, 31.40, -58.07)
CIE-LCHlch(26.37, 66.02, 298.40°)
OKLaboklab(37.77% -0.0047 -0.1681)
OKLCHoklch(37.77% 0.168 268.4)
XYZxyz(7.4535, 4.8716, 30.6783)
Luminance0.0487 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F3299 #99861F
analogous
#1F6F99 #1F3299 #491F99
triadic
#1F3299 #991F32 #32991F
tetradic
#1F3299 #991F6F #99861F #1F9949
square
#1F3299 #991F6F #99861F #1F9949
split-complementary
#1F3299 #99491F #6F991F
monochromatic
#0A1133 #152166 #1F3299 #2943CC #566BDD

Accessibility & contrast

On white

10.64
#1F3299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#1F3299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F3299
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F3299#FFFFFF#000000##FFFFFF
##1F32991.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00449C
Deuteranopia (green-blind)
#003997
Tritanopia (blue-blind)
#004E61
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f3299;
/* rgb */ color: rgb(31, 50, 153);
/* oklch */ color: oklch(37.8% 0.168 268.4);
Tailwind
colors: {
  custom: {
    50: '#706ab8',
    500: '#1f3299',
    950: '#000000',
  },
}
SCSS
$custom: #1f3299;
$custom-light: #706ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f3299",
  "rgb": {
    "r": 31,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 230.656,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37768,
    "c": 0.16818,
    "h": 268.4
  },
  "luminance": 0.04872
}

Semantic roles & 50–950 ramp

primary
#1F3299
secondary
#C0AF54
accent
#CF3FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F3299

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

Preview Lab → · Contrast checker → · Palette generator →

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