#1F2875#1F2875

#1F2875 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.4% C 0.131 H 271.7°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#1F2875
RGBrgb(31, 40, 117)
HSLhsl(234, 58%, 29%)
HSVhsv(234, 74%, 46%)
CMYKcmyk(73.5%, 65.8%, 0%, 54.1%)
CIE-LABlab(20.41, 24.38, -45.30)
CIE-LCHlch(20.41, 51.45, 298.29°)
OKLaboklab(32.36% 0.0039 -0.1308)
OKLCHoklch(32.36% 0.131 271.7)
XYZxyz(4.5337, 3.0928, 17.1842)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2875 #756C1F
analogous
#1F5375 #1F2875 #411F75
triadic
#1F2875 #751F28 #28751F
tetradic
#1F2875 #751F53 #756C1F #1F7541
square
#1F2875 #751F53 #756C1F #1F7541
split-complementary
#1F2875 #75411F #53751F
monochromatic
#060818 #121745 #1F2875 #2C39A5 #4250CD

Accessibility & contrast

On white

12.97
#1F2875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#1F2875 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2875
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2875#FFFFFF#000000##FFFFFF
##1F28751.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003577
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#003C4A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #1f2875;
/* rgb */ color: rgb(31, 40, 117);
/* oklch */ color: oklch(32.4% 0.131 271.7);
Tailwind
colors: {
  custom: {
    50: '#68629e',
    500: '#1f2875',
    950: '#000000',
  },
}
SCSS
$custom: #1f2875;
$custom-light: #68629e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2875",
  "rgb": {
    "r": 31,
    "g": 40,
    "b": 117
  },
  "hsl": {
    "h": 233.721,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32363,
    "c": 0.13087,
    "h": 271.7
  },
  "luminance": 0.03093
}

Semantic roles & 50–950 ramp

primary
#1F2875
secondary
#A99E47
accent
#D146E1
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2875

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

Preview Lab → · Contrast checker → · Palette generator →

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