#1F1675#1F1675

#1F1675 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.4% C 0.152 H 275.9°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#1F1675
RGBrgb(31, 22, 117)
HSLhsl(246, 68%, 27%)
HSVhsv(246, 81%, 46%)
CMYKcmyk(73.5%, 81.2%, 0%, 54.1%)
CIE-LABlab(16.25, 35.80, -52.15)
CIE-LCHlch(16.25, 63.25, 304.47°)
OKLaboklab(29.37% 0.0155 -0.1507)
OKLCHoklch(29.37% 0.152 275.9)
XYZxyz(4.0618, 2.1491, 17.0269)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F1675 #6C7516
analogous
#163D75 #1F1675 #4E1675
triadic
#1F1675 #751F16 #16751F
tetradic
#1F1675 #75163D #6C7516 #16754E
square
#1F1675 #75163D #6C7516 #16754E
split-complementary
#1F1675 #754E16 #3D7516
monochromatic
#07051A #110C41 #1F1675 #2D20A9 #3E2ED8

Accessibility & contrast

On white

14.69
#1F1675 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#1F1675 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F1675
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F1675#FFFFFF#000000##FFFFFF
##1F16751.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C78
Deuteranopia (green-blind)
#002473
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #1f1675;
/* rgb */ color: rgb(31, 22, 117);
/* oklch */ color: oklch(29.4% 0.152 275.9);
Tailwind
colors: {
  custom: {
    50: '#6a569e',
    500: '#1f1675',
    950: '#000000',
  },
}
SCSS
$custom: #1f1675;
$custom-light: #6a569e;
$custom-dark: #000000;
JSON
{
  "hex": "#1f1675",
  "rgb": {
    "r": 31,
    "g": 22,
    "b": 117
  },
  "hsl": {
    "h": 245.684,
    "s": 68.345,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29373,
    "c": 0.15154,
    "h": 275.9
  },
  "luminance": 0.02149
}

Semantic roles & 50–950 ramp

primary
#1F1675
secondary
#A0AB3C
accent
#EB3DDB
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1F1675

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

Preview Lab → · Contrast checker → · Palette generator →

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