#1F2B7A#1F2B7A

#1F2B7A is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.134 H 270.6°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#1F2B7A
RGBrgb(31, 43, 122)
HSLhsl(232, 59%, 30%)
HSVhsv(232, 75%, 48%)
CMYKcmyk(74.6%, 64.8%, 0%, 52.2%)
CIE-LABlab(21.67, 24.25, -46.44)
CIE-LCHlch(21.67, 52.39, 297.57°)
OKLaboklab(33.43% 0.0014 -0.1341)
OKLCHoklch(33.43% 0.134 270.6)
XYZxyz(4.9406, 3.4237, 18.8090)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B7A #7A6E1F
analogous
#1F587A #1F2B7A #411F7A
triadic
#1F2B7A #7A1F2B #2B7A1F
tetradic
#1F2B7A #7A1F58 #7A6E1F #1F7A41
square
#1F2B7A #7A1F58 #7A6E1F #1F7A41
split-complementary
#1F2B7A #7A411F #587A1F
monochromatic
#060918 #131A49 #1F2B7A #2B3CAB #4456CF

Accessibility & contrast

On white

12.46
#1F2B7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F2B7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B7A
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B7A#FFFFFF#000000##FFFFFF
##1F2B7A1.0012.461.6812.46
#FFFFFF12.461.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2b7a;
/* rgb */ color: rgb(31, 43, 122);
/* oklch */ color: oklch(33.4% 0.134 270.6);
Tailwind
colors: {
  custom: {
    50: '#6964a1',
    500: '#1f2b7a',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b7a;
$custom-light: #6964a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b7a",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 122
  },
  "hsl": {
    "h": 232.088,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.33428,
    "c": 0.13414,
    "h": 270.6
  },
  "luminance": 0.03424
}

Semantic roles & 50–950 ramp

primary
#1F2B7A
secondary
#ADA047
accent
#CE45E3
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F2B7A

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

Preview Lab → · Contrast checker → · Palette generator →

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