#1F299A#1F299A

#1F299A is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.3% C 0.180 H 269.9°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#1F299A
RGBrgb(31, 41, 154)
HSLhsl(235, 66%, 36%)
HSVhsv(235, 80%, 60%)
CMYKcmyk(79.9%, 73.4%, 0%, 39.6%)
CIE-LABlab(24.35, 37.52, -62.00)
CIE-LCHlch(24.35, 72.47, 301.18°)
OKLaboklab(36.34% -0.0004 -0.1796)
OKLCHoklch(36.34% 0.18 269.9)
XYZxyz(7.1888, 4.2095, 30.9992)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F299A #9A901F
analogous
#1F679A #1F299A #531F9A
triadic
#1F299A #9A1F29 #299A1F
tetradic
#1F299A #9A1F67 #9A901F #1F9A53
square
#1F299A #9A1F67 #9A901F #1F9A53
split-complementary
#1F299A #9A531F #679A1F
monochromatic
#0A0E34 #151B67 #1F299A #2937CD #5661DD

Accessibility & contrast

On white

11.40
#1F299A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F299A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F299A
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F299A#FFFFFF#000000##FFFFFF
##1F299A1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00409D
Deuteranopia (green-blind)
#003498
Tritanopia (blue-blind)
#00495F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f299a;
/* rgb */ color: rgb(31, 41, 154);
/* oklch */ color: oklch(36.3% 0.180 269.9);
Tailwind
colors: {
  custom: {
    50: '#7163b9',
    500: '#1f299a',
    950: '#000000',
  },
}
SCSS
$custom: #1f299a;
$custom-light: #7163b9;
$custom-dark: #000000;
JSON
{
  "hex": "#1f299a",
  "rgb": {
    "r": 31,
    "g": 41,
    "b": 154
  },
  "hsl": {
    "h": 235.122,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36341,
    "c": 0.17957,
    "h": 269.9
  },
  "luminance": 0.0421
}

Semantic roles & 50–950 ramp

primary
#1F299A
secondary
#C1B854
accent
#DC3EE9
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090512
muted
#7B7A81

Preview Lab

Preview with #1F299A

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

Preview Lab → · Contrast checker → · Palette generator →

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