#1F2A97#1F2A97

#1F2A97 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.2% C 0.175 H 269.8°. Best body text is #FFFFFF at 11.44:1 contrast (WCAG AA passes).

Color values

HEX#1F2A97
RGBrgb(31, 42, 151)
HSLhsl(235, 66%, 36%)
HSVhsv(235, 79%, 59%)
CMYKcmyk(79.5%, 72.2%, 0%, 40.8%)
CIE-LABlab(24.26, 35.82, -60.31)
CIE-LCHlch(24.26, 70.14, 300.71°)
OKLaboklab(36.18% -0.0005 -0.1746)
OKLCHoklch(36.18% 0.175 269.8)
XYZxyz(6.9770, 4.1808, 29.7114)
Luminance0.0418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A97 #978C1F
analogous
#1F6697 #1F2A97 #501F97
triadic
#1F2A97 #971F2A #2A971F
tetradic
#1F2A97 #971F66 #978C1F #1F9750
square
#1F2A97 #971F66 #978C1F #1F9750
split-complementary
#1F2A97 #97501F #66971F
monochromatic
#0A0E31 #151C64 #1F2A97 #2938CA #5461DC

Accessibility & contrast

On white

11.44
#1F2A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2A97
11.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A97#FFFFFF#000000##FFFFFF
##1F2A971.0011.441.8411.44
#FFFFFF11.441.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00495D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f2a97;
/* rgb */ color: rgb(31, 42, 151);
/* oklch */ color: oklch(36.2% 0.175 269.8);
Tailwind
colors: {
  custom: {
    50: '#7164b7',
    500: '#1f2a97',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a97;
$custom-light: #7164b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a97",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 151
  },
  "hsl": {
    "h": 234.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36181,
    "c": 0.17465,
    "h": 269.8
  },
  "luminance": 0.04182
}

Semantic roles & 50–950 ramp

primary
#1F2A97
secondary
#BFB552
accent
#D93FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #1F2A97

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

Preview Lab → · Contrast checker → · Palette generator →

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