#1F2795#1F2795

#1F2795 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.5% C 0.175 H 270.4°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#1F2795
RGBrgb(31, 39, 149)
HSLhsl(236, 66%, 35%)
HSVhsv(236, 79%, 58%)
CMYKcmyk(79.2%, 73.8%, 0%, 41.6%)
CIE-LABlab(23.38, 36.96, -60.54)
CIE-LCHlch(23.38, 70.93, 301.40°)
OKLaboklab(35.48% 0.0011 -0.1753)
OKLCHoklch(35.48% 0.175 270.4)
XYZxyz(6.7136, 3.9115, 28.8291)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2795 #958D1F
analogous
#1F6295 #1F2795 #521F95
triadic
#1F2795 #951F27 #27951F
tetradic
#1F2795 #951F62 #958D1F #1F9552
square
#1F2795 #951F62 #958D1F #1F9552
split-complementary
#1F2795 #95521F #62951F
monochromatic
#0A0C30 #141A62 #1F2795 #2A34C8 #535CDB

Accessibility & contrast

On white

11.78
#1F2795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#1F2795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2795
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2795#FFFFFF#000000##FFFFFF
##1F27951.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D98
Deuteranopia (green-blind)
#003293
Tritanopia (blue-blind)
#00475B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #1f2795;
/* rgb */ color: rgb(31, 39, 149);
/* oklch */ color: oklch(35.5% 0.175 270.4);
Tailwind
colors: {
  custom: {
    50: '#7062b5',
    500: '#1f2795',
    950: '#000000',
  },
}
SCSS
$custom: #1f2795;
$custom-light: #7062b5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2795",
  "rgb": {
    "r": 31,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 235.932,
    "s": 65.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.35483,
    "c": 0.1753,
    "h": 270.4
  },
  "luminance": 0.03912
}

Semantic roles & 50–950 ramp

primary
#1F2795
secondary
#BFB751
accent
#DD3FE9
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #1F2795

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

Preview Lab → · Contrast checker → · Palette generator →

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