#1F2E8F#1F2E8F

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

Color values

HEX#1F2E8F
RGBrgb(31, 46, 143)
HSLhsl(232, 64%, 34%)
HSVhsv(232, 78%, 56%)
CMYKcmyk(78.3%, 67.8%, 0%, 43.9%)
CIE-LABlab(24.41, 30.27, -55.13)
CIE-LCHlch(24.41, 62.89, 298.77°)
OKLaboklab(36.05% -0.0018 -0.1595)
OKLCHoklch(36.05% 0.16 269.4)
XYZxyz(6.4983, 4.2277, 26.4548)
Luminance0.0423 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E8F #8F801F
analogous
#1F668F #1F2E8F #481F8F
triadic
#1F2E8F #8F1F2E #2E8F1F
tetradic
#1F2E8F #8F1F66 #8F801F #1F8F48
square
#1F2E8F #8F1F66 #8F801F #1F8F48
split-complementary
#1F2E8F #8F481F #668F1F
monochromatic
#090E2A #141E5D #1F2E8F #2A3EC1 #4F62D9

Accessibility & contrast

On white

11.38
#1F2E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#1F2E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E8F
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E8F#FFFFFF#000000##FFFFFF
##1F2E8F1.0011.381.8511.38
#FFFFFF11.381.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2e8f;
/* rgb */ color: rgb(31, 46, 143);
/* oklch */ color: oklch(36.0% 0.160 269.4);
Tailwind
colors: {
  custom: {
    50: '#6e67b1',
    500: '#1f2e8f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e8f;
$custom-light: #6e67b1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e8f",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 231.964,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.36047,
    "c": 0.15953,
    "h": 269.4
  },
  "luminance": 0.04228
}

Semantic roles & 50–950 ramp

primary
#1F2E8F
secondary
#BCAD4E
accent
#D140E7
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #1F2E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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