#1F2E7A#1F2E7A

#1F2E7A is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.130 H 269.6°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#1F2E7A
RGBrgb(31, 46, 122)
HSLhsl(230, 59%, 30%)
HSVhsv(230, 75%, 48%)
CMYKcmyk(74.6%, 62.3%, 0%, 52.2%)
CIE-LABlab(22.48, 22.16, -45.12)
CIE-LCHlch(22.48, 50.27, 296.16°)
OKLaboklab(34.03% -0.001 -0.1302)
OKLCHoklch(34.03% 0.13 269.6)
XYZxyz(5.0537, 3.6499, 18.8467)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E7A #7A6B1F
analogous
#1F5B7A #1F2E7A #3E1F7A
triadic
#1F2E7A #7A1F2E #2E7A1F
tetradic
#1F2E7A #7A1F5B #7A6B1F #1F7A3E
square
#1F2E7A #7A1F5B #7A6B1F #1F7A3E
split-complementary
#1F2E7A #7A3E1F #5B7A1F
monochromatic
#060918 #131C49 #1F2E7A #2B40AB #445BCF

Accessibility & contrast

On white

12.14
#1F2E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#1F2E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E7A
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E7A#FFFFFF#000000##FFFFFF
##1F2E7A1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7D
Deuteranopia (green-blind)
#003279
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #1f2e7a;
/* rgb */ color: rgb(31, 46, 122);
/* oklch */ color: oklch(34.0% 0.130 269.6);
Tailwind
colors: {
  custom: {
    50: '#6966a1',
    500: '#1f2e7a',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e7a;
$custom-light: #6966a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e7a",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 122
  },
  "hsl": {
    "h": 230.11,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.34029,
    "c": 0.1302,
    "h": 269.6
  },
  "luminance": 0.0365
}

Semantic roles & 50–950 ramp

primary
#1F2E7A
secondary
#AD9D47
accent
#C945E3
background
#F6F6FA
surface
#ECEBF3
border
#C7C6CD
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #1F2E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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