#1F2C97#1F2C97

#1F2C97 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.5% C 0.172 H 269.5°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#1F2C97
RGBrgb(31, 44, 151)
HSLhsl(234, 66%, 36%)
HSVhsv(234, 79%, 59%)
CMYKcmyk(79.5%, 70.9%, 0%, 40.8%)
CIE-LABlab(24.72, 34.55, -59.55)
CIE-LCHlch(24.72, 68.85, 300.13°)
OKLaboklab(36.51% -0.0014 -0.1724)
OKLCHoklch(36.51% 0.172 269.5)
XYZxyz(7.0498, 4.3262, 29.7357)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2C97 #978A1F
analogous
#1F6897 #1F2C97 #4E1F97
triadic
#1F2C97 #971F2C #2C971F
tetradic
#1F2C97 #971F68 #978A1F #1F974E
square
#1F2C97 #971F68 #978A1F #1F974E
split-complementary
#1F2C97 #974E1F #68971F
monochromatic
#0A0E31 #151D64 #1F2C97 #293BCA #5463DC

Accessibility & contrast

On white

11.26
#1F2C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#1F2C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2C97
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2C97#FFFFFF#000000##FFFFFF
##1F2C971.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419A
Deuteranopia (green-blind)
#003595
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f2c97;
/* rgb */ color: rgb(31, 44, 151);
/* oklch */ color: oklch(36.5% 0.172 269.5);
Tailwind
colors: {
  custom: {
    50: '#7065b7',
    500: '#1f2c97',
    950: '#000000',
  },
}
SCSS
$custom: #1f2c97;
$custom-light: #7065b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2c97",
  "rgb": {
    "r": 31,
    "g": 44,
    "b": 151
  },
  "hsl": {
    "h": 233.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36514,
    "c": 0.17245,
    "h": 269.5
  },
  "luminance": 0.04327
}

Semantic roles & 50–950 ramp

primary
#1F2C97
secondary
#BFB452
accent
#D63FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F2C97

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

Preview Lab → · Contrast checker → · Palette generator →

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