#1F2575#1F2575

#1F2575 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.135 H 272.6°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#1F2575
RGBrgb(31, 37, 117)
HSLhsl(236, 58%, 29%)
HSVhsv(236, 74%, 46%)
CMYKcmyk(73.5%, 68.4%, 0%, 54.1%)
CIE-LABlab(19.63, 26.44, -46.58)
CIE-LCHlch(19.63, 53.56, 299.58°)
OKLaboklab(31.79% 0.0062 -0.1346)
OKLCHoklch(31.79% 0.135 272.6)
XYZxyz(4.4364, 2.8984, 17.1518)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2575 #756F1F
analogous
#1F5075 #1F2575 #441F75
triadic
#1F2575 #751F25 #25751F
tetradic
#1F2575 #751F50 #756F1F #1F7544
square
#1F2575 #751F50 #756F1F #1F7544
split-complementary
#1F2575 #75441F #50751F
monochromatic
#060818 #121645 #1F2575 #2C34A5 #424BCD

Accessibility & contrast

On white

13.29
#1F2575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#1F2575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2575
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2575#FFFFFF#000000##FFFFFF
##1F25751.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003478
Deuteranopia (green-blind)
#002C73
Tritanopia (blue-blind)
#003A49
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #1f2575;
/* rgb */ color: rgb(31, 37, 117);
/* oklch */ color: oklch(31.8% 0.135 272.6);
Tailwind
colors: {
  custom: {
    50: '#685f9e',
    500: '#1f2575',
    950: '#000000',
  },
}
SCSS
$custom: #1f2575;
$custom-light: #685f9e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2575",
  "rgb": {
    "r": 31,
    "g": 37,
    "b": 117
  },
  "hsl": {
    "h": 235.814,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31792,
    "c": 0.13471,
    "h": 272.6
  },
  "luminance": 0.02899
}

Semantic roles & 50–950 ramp

primary
#1F2575
secondary
#A9A247
accent
#D746E1
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2575

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

Preview Lab → · Contrast checker → · Palette generator →

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