#1F2175#1F2175

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

Color values

HEX#1F2175
RGBrgb(31, 33, 117)
HSLhsl(239, 58%, 29%)
HSVhsv(239, 74%, 46%)
CMYKcmyk(73.5%, 71.8%, 0%, 54.1%)
CIE-LABlab(18.64, 29.11, -48.21)
CIE-LCHlch(18.64, 56.31, 301.12°)
OKLaboklab(31.07% 0.009 -0.1393)
OKLCHoklch(31.07% 0.14 273.7)
XYZxyz(4.3187, 2.6630, 17.1126)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2175 #75731F
analogous
#1F4C75 #1F2175 #481F75
triadic
#1F2175 #751F21 #21751F
tetradic
#1F2175 #751F4C #75731F #1F7548
square
#1F2175 #751F4C #75731F #1F7548
split-complementary
#1F2175 #75481F #4C751F
monochromatic
#060718 #121345 #1F2175 #2C2FA5 #4245CD

Accessibility & contrast

On white

13.70
#1F2175 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1F2175 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2175
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2175#FFFFFF#000000##FFFFFF
##1F21751.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002973
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1f2175;
/* rgb */ color: rgb(31, 33, 117);
/* oklch */ color: oklch(31.1% 0.140 273.7);
Tailwind
colors: {
  custom: {
    50: '#695d9e',
    500: '#1f2175',
    950: '#000000',
  },
}
SCSS
$custom: #1f2175;
$custom-light: #695d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2175",
  "rgb": {
    "r": 31,
    "g": 33,
    "b": 117
  },
  "hsl": {
    "h": 238.605,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31072,
    "c": 0.13963,
    "h": 273.7
  },
  "luminance": 0.02663
}

Semantic roles & 50–950 ramp

primary
#1F2175
secondary
#A9A647
accent
#DE46E1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2175

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

Preview Lab → · Contrast checker → · Palette generator →

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