#1F2A75#1F2A75

#1F2A75 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.8% C 0.128 H 271.0°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#1F2A75
RGBrgb(31, 42, 117)
HSLhsl(232, 58%, 29%)
HSVhsv(232, 74%, 46%)
CMYKcmyk(73.5%, 64.1%, 0%, 54.1%)
CIE-LABlab(20.95, 23.00, -44.43)
CIE-LCHlch(20.95, 50.03, 297.37°)
OKLaboklab(32.76% 0.0023 -0.1282)
OKLCHoklch(32.76% 0.128 271)
XYZxyz(4.6028, 3.2311, 17.2073)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A75 #756A1F
analogous
#1F5575 #1F2A75 #3F1F75
triadic
#1F2A75 #751F2A #2A751F
tetradic
#1F2A75 #751F55 #756A1F #1F753F
square
#1F2A75 #751F55 #756A1F #1F753F
split-complementary
#1F2A75 #753F1F #55751F
monochromatic
#060918 #121945 #1F2A75 #2C3BA5 #4253CD

Accessibility & contrast

On white

12.76
#1F2A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#1F2A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A75
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A75#FFFFFF#000000##FFFFFF
##1F2A751.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #1f2a75;
/* rgb */ color: rgb(31, 42, 117);
/* oklch */ color: oklch(32.8% 0.128 271.0);
Tailwind
colors: {
  custom: {
    50: '#68639d',
    500: '#1f2a75',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a75;
$custom-light: #68639d;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a75",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 117
  },
  "hsl": {
    "h": 232.326,
    "s": 58.108,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32757,
    "c": 0.12825,
    "h": 271
  },
  "luminance": 0.03232
}

Semantic roles & 50–950 ramp

primary
#1F2A75
secondary
#A99C47
accent
#CE46E1
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050E
muted
#7A797E

Preview Lab

Preview with #1F2A75

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

Preview Lab → · Contrast checker → · Palette generator →

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