#1F2276#1F2276

#1F2276 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.140 H 273.4°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#1F2276
RGBrgb(31, 34, 118)
HSLhsl(238, 58%, 29%)
HSVhsv(238, 74%, 46%)
CMYKcmyk(73.7%, 71.2%, 0%, 53.7%)
CIE-LABlab(18.98, 28.82, -48.29)
CIE-LCHlch(18.98, 56.23, 300.83°)
OKLaboklab(31.35% 0.0082 -0.1396)
OKLCHoklch(31.35% 0.14 273.4)
XYZxyz(4.4060, 2.7429, 17.4333)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2276 #76731F
analogous
#1F4E76 #1F2276 #481F76
triadic
#1F2276 #761F22 #22761F
tetradic
#1F2276 #761F4E #76731F #1F7648
square
#1F2276 #761F4E #76731F #1F7648
split-complementary
#1F2276 #76481F #4E761F
monochromatic
#060718 #121446 #1F2276 #2C30A6 #4247CD

Accessibility & contrast

On white

13.56
#1F2276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2276
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2276#FFFFFF#000000##FFFFFF
##1F22761.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002A74
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f2276;
/* rgb */ color: rgb(31, 34, 118);
/* oklch */ color: oklch(31.4% 0.140 273.4);
Tailwind
colors: {
  custom: {
    50: '#695d9e',
    500: '#1f2276',
    950: '#000000',
  },
}
SCSS
$custom: #1f2276;
$custom-light: #695d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2276",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 237.931,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31351,
    "c": 0.13981,
    "h": 273.4
  },
  "luminance": 0.02743
}

Semantic roles & 50–950 ramp

primary
#1F2276
secondary
#AAA647
accent
#DC46E2
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2276

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

Preview Lab → · Contrast checker → · Palette generator →

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