#1F2B8D#1F2B8D

#1F2B8D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.160 H 270.0°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#1F2B8D
RGBrgb(31, 43, 141)
HSLhsl(233, 64%, 34%)
HSVhsv(233, 78%, 55%)
CMYKcmyk(78%, 69.5%, 0%, 44.7%)
CIE-LABlab(23.48, 31.49, -55.42)
CIE-LCHlch(23.48, 63.74, 299.61°)
OKLaboklab(35.31% 0.0001 -0.1604)
OKLCHoklch(35.31% 0.16 270)
XYZxyz(6.2350, 3.9415, 25.6263)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B8D #8D811F
analogous
#1F628D #1F2B8D #4A1F8D
triadic
#1F2B8D #8D1F2B #2B8D1F
tetradic
#1F2B8D #8D1F62 #8D811F #1F8D4A
square
#1F2B8D #8D1F62 #8D811F #1F8D4A
split-complementary
#1F2B8D #8D4A1F #628D1F
monochromatic
#090C29 #141C5B #1F2B8D #2A3ABF #4E5DD8

Accessibility & contrast

On white

11.74
#1F2B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#1F2B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B8D
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B8D#FFFFFF#000000##FFFFFF
##1F2B8D1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#00338B
Tritanopia (blue-blind)
#004658
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2b8d;
/* rgb */ color: rgb(31, 43, 141);
/* oklch */ color: oklch(35.3% 0.160 270.0);
Tailwind
colors: {
  custom: {
    50: '#6e64af',
    500: '#1f2b8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b8d;
$custom-light: #6e64af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b8d",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 233.455,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35307,
    "c": 0.16039,
    "h": 270
  },
  "luminance": 0.03942
}

Semantic roles & 50–950 ramp

primary
#1F2B8D
secondary
#BBAF4D
accent
#D541E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080510
muted
#7B7A7F

Preview Lab

Preview with #1F2B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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