#1F2A7F#1F2A7F

#1F2A7F is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.7% C 0.142 H 270.7°. Best body text is #FFFFFF at 12.38:1 contrast (WCAG AA passes).

Color values

HEX#1F2A7F
RGBrgb(31, 42, 127)
HSLhsl(233, 61%, 31%)
HSVhsv(233, 76%, 50%)
CMYKcmyk(75.6%, 66.9%, 0%, 50.2%)
CIE-LABlab(21.87, 26.86, -49.28)
CIE-LCHlch(21.87, 56.13, 298.59°)
OKLaboklab(33.72% 0.0018 -0.1425)
OKLCHoklch(33.72% 0.142 270.7)
XYZxyz(5.2225, 3.4790, 20.4708)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A7F #7F741F
analogous
#1F5A7F #1F2A7F #441F7F
triadic
#1F2A7F #7F1F2A #2A7F1F
tetradic
#1F2A7F #7F1F5A #7F741F #1F7F44
square
#1F2A7F #7F1F5A #7F741F #1F7F44
split-complementary
#1F2A7F #7F441F #5A7F1F
monochromatic
#07091D #131A4E #1F2A7F #2B3AB0 #4656D2

Accessibility & contrast

On white

12.38
#1F2A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1F2A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2A7F
12.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A7F#FFFFFF#000000##FFFFFF
##1F2A7F1.0012.381.7012.38
#FFFFFF12.381.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#00307D
Tritanopia (blue-blind)
#004050
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1f2a7f;
/* rgb */ color: rgb(31, 42, 127);
/* oklch */ color: oklch(33.7% 0.142 270.7);
Tailwind
colors: {
  custom: {
    50: '#6a63a5',
    500: '#1f2a7f',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a7f;
$custom-light: #6a63a5;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a7f",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 233.125,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.33719,
    "c": 0.14247,
    "h": 270.7
  },
  "luminance": 0.0348
}

Semantic roles & 50–950 ramp

primary
#1F2A7F
secondary
#B2A648
accent
#D244E4
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F2A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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