#1F4299#1F4299

#1F4299 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 40.9% C 0.148 H 264.2°. Best body text is #FFFFFF at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#1F4299
RGBrgb(31, 66, 153)
HSLhsl(223, 66%, 36%)
HSVhsv(223, 80%, 60%)
CMYKcmyk(79.7%, 56.9%, 0%, 40%)
CIE-LABlab(30.61, 20.58, -51.14)
CIE-LCHlch(30.61, 55.12, 291.92°)
OKLaboklab(40.92% -0.0149 -0.1476)
OKLCHoklch(40.92% 0.148 264.2)
XYZxyz(8.2610, 6.4867, 30.9475)
Luminance0.0649 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F4299 #99761F
analogous
#1F7F99 #1F4299 #391F99
triadic
#1F4299 #991F42 #42991F
tetradic
#1F4299 #991F7F #99761F #1F9939
square
#1F4299 #991F7F #99761F #1F9939
split-complementary
#1F4299 #99391F #7F991F
monochromatic
#0A1633 #152C66 #1F4299 #2958CC #567CDD

Accessibility & contrast

On white

9.14
#1F4299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#1F4299 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F4299
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F4299#FFFFFF#000000##FFFFFF
##1F42991.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9C
Deuteranopia (green-blind)
#004397
Tritanopia (blue-blind)
#005867
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #1f4299;
/* rgb */ color: rgb(31, 66, 153);
/* oklch */ color: oklch(40.9% 0.148 264.2);
Tailwind
colors: {
  custom: {
    50: '#6f75b8',
    500: '#1f4299',
    950: '#000000',
  },
}
SCSS
$custom: #1f4299;
$custom-light: #6f75b8;
$custom-dark: #000000;
JSON
{
  "hex": "#1f4299",
  "rgb": {
    "r": 31,
    "g": 66,
    "b": 153
  },
  "hsl": {
    "h": 222.787,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.40921,
    "c": 0.14833,
    "h": 264.2
  },
  "luminance": 0.06488
}

Semantic roles & 50–950 ramp

primary
#1F4299
secondary
#C0A154
accent
#B83FE9
background
#F7F7FB
surface
#EDEDF6
border
#C8C8D0
text
#090811
muted
#7B7B80

Preview Lab

Preview with #1F4299

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

Preview Lab → · Contrast checker → · Palette generator →

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