#1F2B76#1F2B76

#1F2B76 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.128 H 270.7°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#1F2B76
RGBrgb(31, 43, 118)
HSLhsl(232, 58%, 29%)
HSVhsv(232, 74%, 46%)
CMYKcmyk(73.7%, 63.6%, 0%, 53.7%)
CIE-LABlab(21.31, 22.69, -44.48)
CIE-LCHlch(21.31, 49.93, 297.03°)
OKLaboklab(33.05% 0.0015 -0.1284)
OKLCHoklch(33.05% 0.128 270.7)
XYZxyz(4.6979, 3.3266, 17.5305)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2B76 #766A1F
analogous
#1F5776 #1F2B76 #3F1F76
triadic
#1F2B76 #761F2B #2B761F
tetradic
#1F2B76 #761F57 #766A1F #1F763F
square
#1F2B76 #761F57 #766A1F #1F763F
split-complementary
#1F2B76 #763F1F #57761F
monochromatic
#060918 #121946 #1F2B76 #2C3DA6 #4255CD

Accessibility & contrast

On white

12.61
#1F2B76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F2B76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2B76
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2B76#FFFFFF#000000##FFFFFF
##1F2B761.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003778
Deuteranopia (green-blind)
#002F75
Tritanopia (blue-blind)
#003E4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2b76;
/* rgb */ color: rgb(31, 43, 118);
/* oklch */ color: oklch(33.1% 0.128 270.7);
Tailwind
colors: {
  custom: {
    50: '#68649e',
    500: '#1f2b76',
    950: '#000000',
  },
}
SCSS
$custom: #1f2b76;
$custom-light: #68649e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2b76",
  "rgb": {
    "r": 31,
    "g": 43,
    "b": 118
  },
  "hsl": {
    "h": 231.724,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33051,
    "c": 0.12838,
    "h": 270.7
  },
  "luminance": 0.03327
}

Semantic roles & 50–950 ramp

primary
#1F2B76
secondary
#AA9C47
accent
#CC46E2
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2B76

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

Preview Lab → · Contrast checker → · Palette generator →

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