#1F2E97#1F2E97

#1F2E97 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.9% C 0.170 H 269.2°. Best body text is #FFFFFF at 11.08:1 contrast (WCAG AA passes).

Color values

HEX#1F2E97
RGBrgb(31, 46, 151)
HSLhsl(233, 66%, 36%)
HSVhsv(233, 79%, 59%)
CMYKcmyk(79.5%, 69.5%, 0%, 40.8%)
CIE-LABlab(25.20, 33.27, -58.77)
CIE-LCHlch(25.20, 67.53, 299.51°)
OKLaboklab(36.86% -0.0024 -0.1702)
OKLCHoklch(36.86% 0.17 269.2)
XYZxyz(7.1261, 4.4789, 29.7611)
Luminance0.0448 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E97 #97881F
analogous
#1F6A97 #1F2E97 #4C1F97
triadic
#1F2E97 #971F2E #2E971F
tetradic
#1F2E97 #971F6A #97881F #1F974C
square
#1F2E97 #971F6A #97881F #1F974C
split-complementary
#1F2E97 #974C1F #6A971F
monochromatic
#0A0F31 #151F64 #1F2E97 #293DCA #5465DC

Accessibility & contrast

On white

11.08
#1F2E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1F2E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E97
11.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E97#FFFFFF#000000##FFFFFF
##1F2E971.0011.081.9011.08
#FFFFFF11.081.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429A
Deuteranopia (green-blind)
#003695
Tritanopia (blue-blind)
#004B5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f2e97;
/* rgb */ color: rgb(31, 46, 151);
/* oklch */ color: oklch(36.9% 0.170 269.2);
Tailwind
colors: {
  custom: {
    50: '#7067b7',
    500: '#1f2e97',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e97;
$custom-light: #7067b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e97",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 151
  },
  "hsl": {
    "h": 232.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36856,
    "c": 0.17018,
    "h": 269.2
  },
  "luminance": 0.0448
}

Semantic roles & 50–950 ramp

primary
#1F2E97
secondary
#BFB252
accent
#D43FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F2E97

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

Preview Lab → · Contrast checker → · Palette generator →

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