#1F2275#1F2275

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

Color values

HEX#1F2275
RGBrgb(31, 34, 117)
HSLhsl(238, 58%, 29%)
HSVhsv(238, 74%, 46%)
CMYKcmyk(73.5%, 70.9%, 0%, 54.1%)
CIE-LABlab(18.88, 28.45, -47.81)
CIE-LCHlch(18.88, 55.63, 300.76°)
OKLaboklab(31.25% 0.0083 -0.1382)
OKLCHoklch(31.25% 0.138 273.4)
XYZxyz(4.3469, 2.7193, 17.1220)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2275 #75721F
analogous
#1F4D75 #1F2275 #471F75
triadic
#1F2275 #751F22 #22751F
tetradic
#1F2275 #751F4D #75721F #1F7547
square
#1F2275 #751F4D #75721F #1F7547
split-complementary
#1F2275 #75471F #4D751F
monochromatic
#060718 #121445 #1F2275 #2C30A5 #4246CD

Accessibility & contrast

On white

13.60
#1F2275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1F2275 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2275
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2275#FFFFFF#000000##FFFFFF
##1F22751.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003278
Deuteranopia (green-blind)
#002A73
Tritanopia (blue-blind)
#003848
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1f2275;
/* rgb */ color: rgb(31, 34, 117);
/* oklch */ color: oklch(31.2% 0.138 273.4);
Tailwind
colors: {
  custom: {
    50: '#685d9e',
    500: '#1f2275',
    950: '#000000',
  },
}
SCSS
$custom: #1f2275;
$custom-light: #685d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2275",
  "rgb": {
    "r": 31,
    "g": 34,
    "b": 117
  },
  "hsl": {
    "h": 237.907,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31247,
    "c": 0.13843,
    "h": 273.4
  },
  "luminance": 0.0272
}

Semantic roles & 50–950 ramp

primary
#1F2275
secondary
#A9A547
accent
#DC46E1
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #1F2275

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

Preview Lab → · Contrast checker → · Palette generator →

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