#1F2D72#1F2D72

#1F2D72 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 33.1% C 0.120 H 269.9°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#1F2D72
RGBrgb(31, 45, 114)
HSLhsl(230, 57%, 28%)
HSVhsv(230, 73%, 45%)
CMYKcmyk(72.8%, 60.5%, 0%, 55.3%)
CIE-LABlab(21.51, 19.71, -41.58)
CIE-LCHlch(21.51, 46.01, 295.36°)
OKLaboklab(33.1% -0.0002 -0.1198)
OKLCHoklch(33.1% 0.12 269.9)
XYZxyz(4.5397, 3.3825, 16.3300)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2D72 #72641F
analogous
#1F5672 #1F2D72 #3A1F72
triadic
#1F2D72 #721F2D #2D721F
tetradic
#1F2D72 #721F56 #72641F #1F723A
square
#1F2D72 #721F56 #72641F #1F723A
split-complementary
#1F2D72 #723A1F #56721F
monochromatic
#070918 #121A42 #1F2D72 #2C40A2 #4058CB

Accessibility & contrast

On white

12.53
#1F2D72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#1F2D72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2D72
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2D72#FFFFFF#000000##FFFFFF
##1F2D721.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003874
Deuteranopia (green-blind)
#003071
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2d72;
/* rgb */ color: rgb(31, 45, 114);
/* oklch */ color: oklch(33.1% 0.120 269.9);
Tailwind
colors: {
  custom: {
    50: '#67659b',
    500: '#1f2d72',
    950: '#000000',
  },
}
SCSS
$custom: #1f2d72;
$custom-light: #67659b;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2d72",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 114
  },
  "hsl": {
    "h": 229.88,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33097,
    "c": 0.11982,
    "h": 269.9
  },
  "luminance": 0.03383
}

Semantic roles & 50–950 ramp

primary
#1F2D72
secondary
#A69647
accent
#C747E0
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#07050E
muted
#7A7A7E

Preview Lab

Preview with #1F2D72

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

Preview Lab → · Contrast checker → · Palette generator →

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