#1F2A7E#1F2A7E

#1F2A7E is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.141 H 270.8°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#1F2A7E
RGBrgb(31, 42, 126)
HSLhsl(233, 61%, 31%)
HSVhsv(233, 75%, 49%)
CMYKcmyk(75.4%, 66.7%, 0%, 50.6%)
CIE-LABlab(21.77, 26.48, -48.81)
CIE-LCHlch(21.77, 55.53, 298.48°)
OKLaboklab(33.62% 0.0019 -0.1411)
OKLCHoklch(33.62% 0.141 270.8)
XYZxyz(5.1577, 3.4531, 20.1293)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2A7E #7E731F
analogous
#1F597E #1F2A7E #431F7E
triadic
#1F2A7E #7E1F2A #2A7E1F
tetradic
#1F2A7E #7E1F59 #7E731F #1F7E43
square
#1F2A7E #7E1F59 #7E731F #1F7E43
split-complementary
#1F2A7E #7E431F #597E1F
monochromatic
#07091C #131A4D #1F2A7E #2B3AAF #4656D1

Accessibility & contrast

On white

12.42
#1F2A7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F2A7E
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2A7E#FFFFFF#000000##FFFFFF
##1F2A7E1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1f2a7e;
/* rgb */ color: rgb(31, 42, 126);
/* oklch */ color: oklch(33.6% 0.141 270.8);
Tailwind
colors: {
  custom: {
    50: '#6a63a4',
    500: '#1f2a7e',
    950: '#000000',
  },
}
SCSS
$custom: #1f2a7e;
$custom-light: #6a63a4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2a7e",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 126
  },
  "hsl": {
    "h": 233.053,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33621,
    "c": 0.14107,
    "h": 270.8
  },
  "luminance": 0.03454
}

Semantic roles & 50–950 ramp

primary
#1F2A7E
secondary
#B1A548
accent
#D144E4
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #1F2A7E

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

Preview Lab → · Contrast checker → · Palette generator →

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