#1F2E96#1F2E96

#1F2E96 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.8% C 0.169 H 269.2°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#1F2E96
RGBrgb(31, 46, 150)
HSLhsl(232, 66%, 35%)
HSVhsv(232, 79%, 59%)
CMYKcmyk(79.3%, 69.3%, 0%, 41.2%)
CIE-LABlab(25.10, 32.90, -58.32)
CIE-LCHlch(25.10, 66.96, 299.43°)
OKLaboklab(36.75% -0.0024 -0.1688)
OKLCHoklch(36.75% 0.169 269.2)
XYZxyz(7.0452, 4.4465, 29.3352)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E96 #96871F
analogous
#1F6996 #1F2E96 #4B1F96
triadic
#1F2E96 #961F2E #2E961F
tetradic
#1F2E96 #961F69 #96871F #1F964B
square
#1F2E96 #961F69 #96871F #1F964B
split-complementary
#1F2E96 #964B1F #69961F
monochromatic
#0A0F31 #151E63 #1F2E96 #293EC9 #5465DC

Accessibility & contrast

On white

11.11
#1F2E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1F2E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E96
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E96#FFFFFF#000000##FFFFFF
##1F2E961.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004199
Deuteranopia (green-blind)
#003694
Tritanopia (blue-blind)
#004A5E
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f2e96;
/* rgb */ color: rgb(31, 46, 150);
/* oklch */ color: oklch(36.8% 0.169 269.2);
Tailwind
colors: {
  custom: {
    50: '#7067b6',
    500: '#1f2e96',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e96;
$custom-light: #7067b6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e96",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 150
  },
  "hsl": {
    "h": 232.437,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36754,
    "c": 0.16887,
    "h": 269.2
  },
  "luminance": 0.04447
}

Semantic roles & 50–950 ramp

primary
#1F2E96
secondary
#BFB152
accent
#D33FE9
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #1F2E96

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

Preview Lab → · Contrast checker → · Palette generator →

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