#1F2E89#1F2E89

#1F2E89 is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.5% C 0.151 H 269.5°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#1F2E89
RGBrgb(31, 46, 137)
HSLhsl(232, 63%, 33%)
HSVhsv(232, 77%, 54%)
CMYKcmyk(77.4%, 66.4%, 0%, 46.3%)
CIE-LABlab(23.84, 27.98, -52.33)
CIE-LCHlch(23.84, 59.35, 298.13°)
OKLaboklab(35.45% -0.0014 -0.1514)
OKLCHoklch(35.45% 0.151 269.5)
XYZxyz(6.0559, 4.0508, 24.1248)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E89 #897A1F
analogous
#1F6389 #1F2E89 #451F89
triadic
#1F2E89 #891F2E #2E891F
tetradic
#1F2E89 #891F63 #897A1F #1F8945
square
#1F2E89 #891F63 #897A1F #1F8945
split-complementary
#1F2E89 #89451F #63891F
monochromatic
#080C25 #141D57 #1F2E89 #2A3FBB #4C60D6

Accessibility & contrast

On white

11.60
#1F2E89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#1F2E89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E89
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E89#FFFFFF#000000##FFFFFF
##1F2E891.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E8C
Deuteranopia (green-blind)
#003487
Tritanopia (blue-blind)
#004657
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #1f2e89;
/* rgb */ color: rgb(31, 46, 137);
/* oklch */ color: oklch(35.5% 0.151 269.5);
Tailwind
colors: {
  custom: {
    50: '#6c66ac',
    500: '#1f2e89',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e89;
$custom-light: #6c66ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e89",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 137
  },
  "hsl": {
    "h": 231.509,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.35453,
    "c": 0.15137,
    "h": 269.5
  },
  "luminance": 0.04051
}

Semantic roles & 50–950 ramp

primary
#1F2E89
secondary
#B9AA4B
accent
#CF42E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F2E89

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

Preview Lab → · Contrast checker → · Palette generator →

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