#1F2A7B#1F2A7B

#1F2A7B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.137 H 270.9°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#1F2A7B
RGBrgb(31, 42, 123)
HSLhsl(233, 60%, 30%)
HSVhsv(233, 75%, 48%)
CMYKcmyk(74.8%, 65.9%, 0%, 51.8%)
CIE-LABlab(21.49, 25.32, -47.36)
CIE-LCHlch(21.49, 53.71, 298.13°)
OKLaboklab(33.33% 0.0021 -0.1368)
OKLCHoklch(33.33% 0.137 270.9)
XYZxyz(4.9670, 3.3768, 19.1251)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A7B #7B701F
analogous
#1F587B #1F2A7B #421F7B
triadic
#1F2A7B #7B1F2A #2A7B1F
tetradic
#1F2A7B #7B1F58 #7B701F #1F7B42
square
#1F2A7B #7B1F58 #7B701F #1F7B42
split-complementary
#1F2A7B #7B421F #587B1F
monochromatic
#060919 #13194A #1F2A7B #2B3BAC #4455D0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##1F2A7B#FFFFFF#000000##FFFFFF
##1F2A7B1.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)
#00387E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2a7b;
/* rgb */ color: rgb(31, 42, 123);
/* oklch */ color: oklch(33.3% 0.137 270.9);
Tailwind
colors: {
  custom: {
    50: '#6963a2',
    500: '#1f2a7b',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a7b;
$custom-light: #6963a2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a7b",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 232.826,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33329,
    "c": 0.13685,
    "h": 270.9
  },
  "luminance": 0.03377
}

Semantic roles & 50–950 ramp

primary
#1F2A7B
secondary
#AEA248
accent
#D045E3
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F2A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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