#1F2D97#1F2D97

#1F2D97 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.7% C 0.171 H 269.4°. Best body text is #FFFFFF at 11.17:1 contrast (WCAG AA passes).

Color values

HEX#1F2D97
RGBrgb(31, 45, 151)
HSLhsl(233, 66%, 36%)
HSVhsv(233, 79%, 59%)
CMYKcmyk(79.5%, 70.2%, 0%, 40.8%)
CIE-LABlab(24.96, 33.91, -59.16)
CIE-LCHlch(24.96, 68.19, 299.82°)
OKLaboklab(36.68% -0.0019 -0.1713)
OKLCHoklch(36.68% 0.171 269.4)
XYZxyz(7.0875, 4.4016, 29.7482)
Luminance0.0440 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D97 #97891F
analogous
#1F6997 #1F2D97 #4D1F97
triadic
#1F2D97 #971F2D #2D971F
tetradic
#1F2D97 #971F69 #97891F #1F974D
square
#1F2D97 #971F69 #97891F #1F974D
split-complementary
#1F2D97 #974D1F #69971F
monochromatic
#0A0F31 #151E64 #1F2D97 #293CCA #5464DC

Accessibility & contrast

On white

11.17
#1F2D97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#1F2D97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D97
11.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D97#FFFFFF#000000##FFFFFF
##1F2D971.0011.171.8811.17
#FFFFFF11.171.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.171.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: #1f2d97;
/* rgb */ color: rgb(31, 45, 151);
/* oklch */ color: oklch(36.7% 0.171 269.4);
Tailwind
colors: {
  custom: {
    50: '#7066b7',
    500: '#1f2d97',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d97;
$custom-light: #7066b7;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d97",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 151
  },
  "hsl": {
    "h": 233,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36684,
    "c": 0.17132,
    "h": 269.4
  },
  "luminance": 0.04402
}

Semantic roles & 50–950 ramp

primary
#1F2D97
secondary
#BFB352
accent
#D53FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F2D97

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

Preview Lab → · Contrast checker → · Palette generator →

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