#1F2B89#1F2B89

#1F2B89 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.9% C 0.155 H 270.2°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#1F2B89
RGBrgb(31, 43, 137)
HSLhsl(233, 63%, 33%)
HSVhsv(233, 77%, 54%)
CMYKcmyk(77.4%, 68.6%, 0%, 46.3%)
CIE-LABlab(23.08, 29.99, -53.57)
CIE-LCHlch(23.08, 61.40, 299.24°)
OKLaboklab(34.9% 0.0004 -0.155)
OKLCHoklch(34.9% 0.155 270.2)
XYZxyz(5.9428, 3.8246, 24.0871)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B89 #897D1F
analogous
#1F6089 #1F2B89 #481F89
triadic
#1F2B89 #891F2B #2B891F
tetradic
#1F2B89 #891F60 #897D1F #1F8948
square
#1F2B89 #891F60 #897D1F #1F8948
split-complementary
#1F2B89 #89481F #60891F
monochromatic
#080C25 #141B57 #1F2B89 #2A3BBB #4C5CD6

Accessibility & contrast

On white

11.90
#1F2B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#1F2B89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B89
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B89#FFFFFF#000000##FFFFFF
##1F2B891.0011.901.7711.90
#FFFFFF11.901.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C8C
Deuteranopia (green-blind)
#003287
Tritanopia (blue-blind)
#004456
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2b89;
/* rgb */ color: rgb(31, 43, 137);
/* oklch */ color: oklch(34.9% 0.155 270.2);
Tailwind
colors: {
  custom: {
    50: '#6d64ac',
    500: '#1f2b89',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b89;
$custom-light: #6d64ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b89",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 137
  },
  "hsl": {
    "h": 233.208,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34901,
    "c": 0.15501,
    "h": 270.2
  },
  "luminance": 0.03825
}

Semantic roles & 50–950 ramp

primary
#1F2B89
secondary
#B9AD4B
accent
#D442E6
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2B89

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

Preview Lab → · Contrast checker → · Palette generator →

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