#1F2B7E#1F2B7E

#1F2B7E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.8% C 0.140 H 270.5°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#1F2B7E
RGBrgb(31, 43, 126)
HSLhsl(232, 61%, 31%)
HSVhsv(232, 75%, 49%)
CMYKcmyk(75.4%, 65.9%, 0%, 50.6%)
CIE-LABlab(22.03, 25.79, -48.38)
CIE-LCHlch(22.03, 54.83, 298.06°)
OKLaboklab(33.81% 0.0012 -0.1398)
OKLCHoklch(33.81% 0.14 270.5)
XYZxyz(5.1936, 3.5249, 20.1413)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B7E #7E721F
analogous
#1F5A7E #1F2B7E #421F7E
triadic
#1F2B7E #7E1F2B #2B7E1F
tetradic
#1F2B7E #7E1F5A #7E721F #1F7E42
square
#1F2B7E #7E1F5A #7E721F #1F7E42
split-complementary
#1F2B7E #7E421F #5A7E1F
monochromatic
#07091C #131A4D #1F2B7E #2B3CAF #4658D1

Accessibility & contrast

On white

12.32
#1F2B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B7E
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B7E#FFFFFF#000000##FFFFFF
##1F2B7E1.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2b7e;
/* rgb */ color: rgb(31, 43, 126);
/* oklch */ color: oklch(33.8% 0.140 270.5);
Tailwind
colors: {
  custom: {
    50: '#6a64a4',
    500: '#1f2b7e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b7e;
$custom-light: #6a64a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b7e",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 232.421,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33812,
    "c": 0.13981,
    "h": 270.5
  },
  "luminance": 0.03525
}

Semantic roles & 50–950 ramp

primary
#1F2B7E
secondary
#B1A448
accent
#CF44E4
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #1F2B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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