#1F2A7A#1F2A7A

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

Color values

HEX#1F2A7A
RGBrgb(31, 42, 122)
HSLhsl(233, 59%, 30%)
HSVhsv(233, 75%, 48%)
CMYKcmyk(74.6%, 65.6%, 0%, 52.2%)
CIE-LABlab(21.40, 24.94, -46.88)
CIE-LCHlch(21.40, 53.10, 298.01°)
OKLaboklab(33.23% 0.0021 -0.1354)
OKLCHoklch(33.23% 0.135 270.9)
XYZxyz(4.9047, 3.3519, 18.7971)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A7A #7A6F1F
analogous
#1F587A #1F2A7A #411F7A
triadic
#1F2A7A #7A1F2A #2A7A1F
tetradic
#1F2A7A #7A1F58 #7A6F1F #1F7A41
square
#1F2A7A #7A1F58 #7A6F1F #1F7A41
split-complementary
#1F2A7A #7A411F #587A1F
monochromatic
#060818 #131949 #1F2A7A #2B3BAB #4455CF

Accessibility & contrast

On white

12.57
#1F2A7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#1F2A7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A7A
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A7A#FFFFFF#000000##FFFFFF
##1F2A7A1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387D
Deuteranopia (green-blind)
#002F78
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #1f2a7a;
/* rgb */ color: rgb(31, 42, 122);
/* oklch */ color: oklch(33.2% 0.135 270.9);
Tailwind
colors: {
  custom: {
    50: '#6963a1',
    500: '#1f2a7a',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a7a;
$custom-light: #6963a1;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a7a",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 232.747,
    "s": 59.477,
    "l": 30
  },
  "oklch": {
    "l": 0.33233,
    "c": 0.13543,
    "h": 270.9
  },
  "luminance": 0.03352
}

Semantic roles & 50–950 ramp

primary
#1F2A7A
secondary
#ADA147
accent
#D045E3
background
#F6F5FA
surface
#ECEAF3
border
#C7C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F2A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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