#1F2B79#1F2B79

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

Color values

HEX#1F2B79
RGBrgb(31, 43, 121)
HSLhsl(232, 59%, 30%)
HSVhsv(232, 74%, 47%)
CMYKcmyk(74.4%, 64.5%, 0%, 52.5%)
CIE-LABlab(21.58, 23.86, -45.96)
CIE-LCHlch(21.58, 51.78, 297.44°)
OKLaboklab(33.33% 0.0014 -0.1327)
OKLCHoklch(33.33% 0.133 270.6)
XYZxyz(4.8790, 3.3990, 18.4844)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B79 #796D1F
analogous
#1F5879 #1F2B79 #401F79
triadic
#1F2B79 #791F2B #2B791F
tetradic
#1F2B79 #791F58 #796D1F #1F7940
square
#1F2B79 #791F58 #796D1F #1F7940
split-complementary
#1F2B79 #79401F #58791F
monochromatic
#060918 #131A48 #1F2B79 #2B3CAA #4356CF

Accessibility & contrast

On white

12.50
#1F2B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2B79
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B79#FFFFFF#000000##FFFFFF
##1F2B791.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2b79;
/* rgb */ color: rgb(31, 43, 121);
/* oklch */ color: oklch(33.3% 0.133 270.6);
Tailwind
colors: {
  custom: {
    50: '#6964a0',
    500: '#1f2b79',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b79;
$custom-light: #6964a0;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b79",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 121
  },
  "hsl": {
    "h": 232,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33333,
    "c": 0.13271,
    "h": 270.6
  },
  "luminance": 0.034
}

Semantic roles & 50–950 ramp

primary
#1F2B79
secondary
#AC9F47
accent
#CD45E2
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F2B79

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

Preview Lab → · Contrast checker → · Palette generator →

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