#1F2E81#1F2E81

#1F2E81 is a dark, vivid blue. Relative luminance 0.038; OKLCH L 34.7% C 0.140 H 269.6°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#1F2E81
RGBrgb(31, 46, 129)
HSLhsl(231, 61%, 31%)
HSVhsv(231, 76%, 51%)
CMYKcmyk(76%, 64.3%, 0%, 49.4%)
CIE-LABlab(23.10, 24.90, -48.53)
CIE-LCHlch(23.10, 54.54, 297.16°)
OKLaboklab(34.68% -0.0011 -0.1402)
OKLCHoklch(34.68% 0.14 269.6)
XYZxyz(5.5032, 3.8297, 21.2138)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E81 #81721F
analogous
#1F5F81 #1F2E81 #411F81
triadic
#1F2E81 #811F2E #2E811F
tetradic
#1F2E81 #811F5F #81721F #1F8141
square
#1F2E81 #811F5F #81721F #1F8141
split-complementary
#1F2E81 #81411F #5F811F
monochromatic
#070B1E #131C50 #1F2E81 #2B40B2 #475DD3

Accessibility & contrast

On white

11.89
#1F2E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2E81
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E81#FFFFFF#000000##FFFFFF
##1F2E811.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C84
Deuteranopia (green-blind)
#00337F
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #1f2e81;
/* rgb */ color: rgb(31, 46, 129);
/* oklch */ color: oklch(34.7% 0.140 269.6);
Tailwind
colors: {
  custom: {
    50: '#6a66a6',
    500: '#1f2e81',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e81;
$custom-light: #6a66a6;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e81",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 230.816,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34682,
    "c": 0.14021,
    "h": 269.6
  },
  "luminance": 0.0383
}

Semantic roles & 50–950 ramp

primary
#1F2E81
secondary
#B4A348
accent
#CC43E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2E81

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

Preview Lab → · Contrast checker → · Palette generator →

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