#1F2277#1F2277

#1F2277 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.141 H 273.3°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#1F2277
RGBrgb(31, 34, 119)
HSLhsl(238, 59%, 29%)
HSVhsv(238, 74%, 47%)
CMYKcmyk(73.9%, 71.4%, 0%, 53.3%)
CIE-LABlab(19.08, 29.20, -48.76)
CIE-LCHlch(19.08, 56.83, 300.91°)
OKLaboklab(31.46% 0.008 -0.141)
OKLCHoklch(31.46% 0.141 273.3)
XYZxyz(4.4658, 2.7668, 17.7479)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2277 #77741F
analogous
#1F4E77 #1F2277 #481F77
triadic
#1F2277 #771F22 #22771F
tetradic
#1F2277 #771F4E #77741F #1F7748
square
#1F2277 #771F4E #77741F #1F7748
split-complementary
#1F2277 #77481F #4E771F
monochromatic
#060718 #121446 #1F2277 #2C30A8 #4347CE

Accessibility & contrast

On white

13.52
#1F2277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#1F2277 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2277
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2277#FFFFFF#000000##FFFFFF
##1F22771.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002A75
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f2277;
/* rgb */ color: rgb(31, 34, 119);
/* oklch */ color: oklch(31.5% 0.141 273.3);
Tailwind
colors: {
  custom: {
    50: '#695d9f',
    500: '#1f2277',
    950: '#000000',
  },
}
SCSS
$custom: #1f2277;
$custom-light: #695d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2277",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 237.955,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31455,
    "c": 0.14119,
    "h": 273.3
  },
  "luminance": 0.02767
}

Semantic roles & 50–950 ramp

primary
#1F2277
secondary
#ABA747
accent
#DD46E2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #1F2277

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

Preview Lab → · Contrast checker → · Palette generator →

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