#1F2E8E#1F2E8E

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

Color values

HEX#1F2E8E
RGBrgb(31, 46, 142)
HSLhsl(232, 64%, 34%)
HSVhsv(232, 78%, 56%)
CMYKcmyk(78.2%, 67.6%, 0%, 44.3%)
CIE-LABlab(24.31, 29.89, -54.66)
CIE-LCHlch(24.31, 62.30, 298.67°)
OKLaboklab(35.95% -0.0017 -0.1582)
OKLCHoklch(35.95% 0.158 269.4)
XYZxyz(6.4229, 4.1976, 26.0577)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E8E #8E7F1F
analogous
#1F668E #1F2E8E #481F8E
triadic
#1F2E8E #8E1F2E #2E8E1F
tetradic
#1F2E8E #8E1F66 #8E7F1F #1F8E48
square
#1F2E8E #8E1F66 #8E7F1F #1F8E48
split-complementary
#1F2E8E #8E481F #668E1F
monochromatic
#090D2A #141E5C #1F2E8E #2A3EC0 #4F61D9

Accessibility & contrast

On white

11.42
#1F2E8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#1F2E8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E8E
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E8E#FFFFFF#000000##FFFFFF
##1F2E8E1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F91
Deuteranopia (green-blind)
#00358C
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #1f2e8e;
/* rgb */ color: rgb(31, 46, 142);
/* oklch */ color: oklch(35.9% 0.158 269.4);
Tailwind
colors: {
  custom: {
    50: '#6e66b0',
    500: '#1f2e8e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e8e;
$custom-light: #6e66b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e8e",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 142
  },
  "hsl": {
    "h": 231.892,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.35947,
    "c": 0.15818,
    "h": 269.4
  },
  "luminance": 0.04198
}

Semantic roles & 50–950 ramp

primary
#1F2E8E
secondary
#BBAD4D
accent
#D141E7
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1F2E8E

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

Preview Lab → · Contrast checker → · Palette generator →

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