#1F2E77#1F2E77

#1F2E77 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.8% C 0.126 H 269.5°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#1F2E77
RGBrgb(31, 46, 119)
HSLhsl(230, 59%, 29%)
HSVhsv(230, 74%, 47%)
CMYKcmyk(73.9%, 61.3%, 0%, 53.3%)
CIE-LABlab(22.22, 20.98, -43.63)
CIE-LCHlch(22.22, 48.41, 295.68°)
OKLaboklab(33.76% -0.001 -0.1258)
OKLCHoklch(33.76% 0.126 269.5)
XYZxyz(4.8707, 3.5767, 17.8829)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2E77 #77681F
analogous
#1F5A77 #1F2E77 #3C1F77
triadic
#1F2E77 #771F2E #2E771F
tetradic
#1F2E77 #771F5A #77681F #1F773C
square
#1F2E77 #771F5A #77681F #1F773C
split-complementary
#1F2E77 #773C1F #5A771F
monochromatic
#060918 #121B46 #1F2E77 #2C41A8 #435ACE

Accessibility & contrast

On white

12.24
#1F2E77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#1F2E77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2E77
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2E77#FFFFFF#000000##FFFFFF
##1F2E771.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003979
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#00404D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #1f2e77;
/* rgb */ color: rgb(31, 46, 119);
/* oklch */ color: oklch(33.8% 0.126 269.5);
Tailwind
colors: {
  custom: {
    50: '#68669f',
    500: '#1f2e77',
    950: '#000000',
  },
}
SCSS
$custom: #1f2e77;
$custom-light: #68669f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2e77",
  "rgb": {
    "r": 31,
    "g": 46,
    "b": 119
  },
  "hsl": {
    "h": 229.773,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33756,
    "c": 0.12584,
    "h": 269.5
  },
  "luminance": 0.03577
}

Semantic roles & 50–950 ramp

primary
#1F2E77
secondary
#AB9A47
accent
#C746E2
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07060E
muted
#7A7A7E

Preview Lab

Preview with #1F2E77

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

Preview Lab → · Contrast checker → · Palette generator →

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