#1F2AA6#1F2AA6

#1F2AA6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.8% C 0.194 H 269.3°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#1F2AA6
RGBrgb(31, 42, 166)
HSLhsl(235, 69%, 39%)
HSVhsv(235, 81%, 65%)
CMYKcmyk(81.3%, 74.7%, 0%, 34.9%)
CIE-LABlab(25.86, 41.16, -66.81)
CIE-LCHlch(25.86, 78.47, 301.64°)
OKLaboklab(37.8% -0.0025 -0.1936)
OKLCHoklch(37.8% 0.194 269.3)
XYZxyz(8.2736, 4.6994, 36.5400)
Luminance0.0470 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2AA6 #A69B1F
analogous
#1F6DA6 #1F2AA6 #571FA6
triadic
#1F2AA6 #A61F2A #2AA61F
tetradic
#1F2AA6 #A61F6D #A69B1F #1FA657
square
#1F2AA6 #A61F6D #A69B1F #1FA657
split-complementary
#1F2AA6 #A6571F #6DA61F
monochromatic
#0C103F #151D72 #1F2AA6 #2B39D7 #5E69E1

Accessibility & contrast

On white

10.82
#1F2AA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#1F2AA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2AA6
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2AA6#FFFFFF#000000##FFFFFF
##1F2AA61.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AA
Deuteranopia (green-blind)
#0036A4
Tritanopia (blue-blind)
#004E66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #1f2aa6;
/* rgb */ color: rgb(31, 42, 166);
/* oklch */ color: oklch(37.8% 0.194 269.3);
Tailwind
colors: {
  custom: {
    50: '#7565c2',
    500: '#1f2aa6',
    950: '#000000',
  },
}
SCSS
$custom: #1f2aa6;
$custom-light: #7565c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2aa6",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 166
  },
  "hsl": {
    "h": 235.111,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37803,
    "c": 0.19359,
    "h": 269.3
  },
  "luminance": 0.047
}

Semantic roles & 50–950 ramp

primary
#1F2AA6
secondary
#C5BD5B
accent
#DD3CEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0513
muted
#7C7A82

Preview Lab

Preview with #1F2AA6

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

Preview Lab → · Contrast checker → · Palette generator →

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