#1F2E9D#1F2E9D

#1F2E9D is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.5% C 0.178 H 269.0°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#1F2E9D
RGBrgb(31, 46, 157)
HSLhsl(233, 67%, 37%)
HSVhsv(233, 80%, 62%)
CMYKcmyk(80.3%, 70.7%, 0%, 38.4%)
CIE-LABlab(25.80, 35.48, -61.45)
CIE-LCHlch(25.80, 70.96, 300.00°)
OKLaboklab(37.48% -0.003 -0.178)
OKLCHoklch(37.48% 0.178 269)
XYZxyz(7.6258, 4.6787, 32.3929)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E9D #9D8E1F
analogous
#1F6D9D #1F2E9D #4F1F9D
triadic
#1F2E9D #9D1F2E #2E9D1F
tetradic
#1F2E9D #9D1F6D #9D8E1F #1F9D4F
square
#1F2E9D #9D1F6D #9D8E1F #1F9D4F
split-complementary
#1F2E9D #9D4F1F #6D9D1F
monochromatic
#0B1037 #151F6A #1F2E9D #293DD0 #5868DE

Accessibility & contrast

On white

10.85
#1F2E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1F2E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E9D
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E9D#FFFFFF#000000##FFFFFF
##1F2E9D1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A0
Deuteranopia (green-blind)
#00379B
Tritanopia (blue-blind)
#004D62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f2e9d;
/* rgb */ color: rgb(31, 46, 157);
/* oklch */ color: oklch(37.5% 0.178 269.0);
Tailwind
colors: {
  custom: {
    50: '#7267bb',
    500: '#1f2e9d',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e9d;
$custom-light: #7267bb;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e9d",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 157
  },
  "hsl": {
    "h": 232.857,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.37476,
    "c": 0.178,
    "h": 269
  },
  "luminance": 0.0468
}

Semantic roles & 50–950 ramp

primary
#1F2E9D
secondary
#C2B556
accent
#D53EEA
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #1F2E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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