#1F2A7D#1F2A7D

#1F2A7D is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.140 H 270.8°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#1F2A7D
RGBrgb(31, 42, 125)
HSLhsl(233, 60%, 31%)
HSVhsv(233, 75%, 49%)
CMYKcmyk(75.2%, 66.4%, 0%, 51%)
CIE-LABlab(21.68, 26.09, -48.33)
CIE-LCHlch(21.68, 54.92, 298.37°)
OKLaboklab(33.52% 0.002 -0.1396)
OKLCHoklch(33.52% 0.14 270.8)
XYZxyz(5.0934, 3.4274, 19.7912)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A7D #7D721F
analogous
#1F597D #1F2A7D #431F7D
triadic
#1F2A7D #7D1F2A #2A7D1F
tetradic
#1F2A7D #7D1F59 #7D721F #1F7D43
square
#1F2A7D #7D1F59 #7D721F #1F7D43
split-complementary
#1F2A7D #7D431F #597D1F
monochromatic
#07091B #131A4C #1F2A7D #2B3AAE #4556D1

Accessibility & contrast

On white

12.46
#1F2A7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1F2A7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A7D
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A7D#FFFFFF#000000##FFFFFF
##1F2A7D1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003880
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2a7d;
/* rgb */ color: rgb(31, 42, 125);
/* oklch */ color: oklch(33.5% 0.140 270.8);
Tailwind
colors: {
  custom: {
    50: '#6a63a3',
    500: '#1f2a7d',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a7d;
$custom-light: #6a63a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a7d",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 125
  },
  "hsl": {
    "h": 232.979,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33524,
    "c": 0.13966,
    "h": 270.8
  },
  "luminance": 0.03428
}

Semantic roles & 50–950 ramp

primary
#1F2A7D
secondary
#B0A448
accent
#D144E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F2A7D

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

Preview Lab → · Contrast checker → · Palette generator →

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