#1F2E8D#1F2E8D

#1F2E8D is a dark, vivid blue. Relative luminance 0.042; OKLCH L 35.8% C 0.157 H 269.4°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#1F2E8D
RGBrgb(31, 46, 141)
HSLhsl(232, 64%, 34%)
HSVhsv(232, 78%, 55%)
CMYKcmyk(78%, 67.4%, 0%, 44.7%)
CIE-LABlab(24.22, 29.51, -54.20)
CIE-LCHlch(24.22, 61.71, 298.57°)
OKLaboklab(35.85% -0.0017 -0.1568)
OKLCHoklch(35.85% 0.157 269.4)
XYZxyz(6.3481, 4.1677, 25.6640)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E8D #8D7E1F
analogous
#1F658D #1F2E8D #471F8D
triadic
#1F2E8D #8D1F2E #2E8D1F
tetradic
#1F2E8D #8D1F65 #8D7E1F #1F8D47
square
#1F2E8D #8D1F65 #8D7E1F #1F8D47
split-complementary
#1F2E8D #8D471F #658D1F
monochromatic
#090D29 #141E5B #1F2E8D #2A3EBF #4E61D8

Accessibility & contrast

On white

11.45
#1F2E8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#1F2E8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E8D
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E8D#FFFFFF#000000##FFFFFF
##1F2E8D1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F90
Deuteranopia (green-blind)
#00348B
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f2e8d;
/* rgb */ color: rgb(31, 46, 141);
/* oklch */ color: oklch(35.8% 0.157 269.4);
Tailwind
colors: {
  custom: {
    50: '#6e66af',
    500: '#1f2e8d',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e8d;
$custom-light: #6e66af;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e8d",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 141
  },
  "hsl": {
    "h": 231.818,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.35848,
    "c": 0.15683,
    "h": 269.4
  },
  "luminance": 0.04168
}

Semantic roles & 50–950 ramp

primary
#1F2E8D
secondary
#BBAC4D
accent
#D041E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080610
muted
#7B7A7F

Preview Lab

Preview with #1F2E8D

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

Preview Lab → · Contrast checker → · Palette generator →

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