#1F2A7C#1F2A7C

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

Color values

HEX#1F2A7C
RGBrgb(31, 42, 124)
HSLhsl(233, 60%, 30%)
HSVhsv(233, 75%, 49%)
CMYKcmyk(75%, 66.1%, 0%, 51.4%)
CIE-LABlab(21.59, 25.71, -47.84)
CIE-LCHlch(21.59, 54.31, 298.25°)
OKLaboklab(33.43% 0.002 -0.1382)
OKLCHoklch(33.43% 0.138 270.8)
XYZxyz(5.0299, 3.4020, 19.4564)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A7C #7C711F
analogous
#1F587C #1F2A7C #421F7C
triadic
#1F2A7C #7C1F2A #2A7C1F
tetradic
#1F2A7C #7C1F58 #7C711F #1F7C42
square
#1F2A7C #7C1F58 #7C711F #1F7C42
split-complementary
#1F2A7C #7C421F #587C1F
monochromatic
#07091A #13194B #1F2A7C #2B3BAD #4555D0

Accessibility & contrast

On white

12.50
#1F2A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2A7C
12.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A7C#FFFFFF#000000##FFFFFF
##1F2A7C1.0012.501.6812.50
#FFFFFF12.501.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#003F4F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2a7c;
/* rgb */ color: rgb(31, 42, 124);
/* oklch */ color: oklch(33.4% 0.138 270.8);
Tailwind
colors: {
  custom: {
    50: '#6963a3',
    500: '#1f2a7c',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a7c;
$custom-light: #6963a3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a7c",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 232.903,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33426,
    "c": 0.13825,
    "h": 270.8
  },
  "luminance": 0.03402
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F2A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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