#1F2AA9#1F2AA9

#1F2AA9 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.1% C 0.197 H 269.1°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#1F2AA9
RGBrgb(31, 42, 169)
HSLhsl(235, 69%, 39%)
HSVhsv(235, 82%, 66%)
CMYKcmyk(81.7%, 75.1%, 0%, 33.7%)
CIE-LABlab(26.19, 42.20, -68.08)
CIE-LCHlch(26.19, 80.10, 301.79°)
OKLaboklab(38.13% -0.0029 -0.1972)
OKLCHoklch(38.13% 0.197 269.1)
XYZxyz(8.5520, 4.8108, 38.0063)
Luminance0.0481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2AA9 #A99E1F
analogous
#1F6FA9 #1F2AA9 #591FA9
triadic
#1F2AA9 #A91F2A #2AA91F
tetradic
#1F2AA9 #A91F6F #A99E1F #1FA959
square
#1F2AA9 #A91F6F #A99E1F #1FA959
split-complementary
#1F2AA9 #A9591F #6FA91F
monochromatic
#0C1042 #161D75 #1F2AA9 #2D3AD8 #606BE2

Accessibility & contrast

On white

10.70
#1F2AA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1F2AA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2AA9
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2AA9#FFFFFF#000000##FFFFFF
##1F2AA91.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AD
Deuteranopia (green-blind)
#0037A7
Tritanopia (blue-blind)
#004F67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1f2aa9;
/* rgb */ color: rgb(31, 42, 169);
/* oklch */ color: oklch(38.1% 0.197 269.1);
Tailwind
colors: {
  custom: {
    50: '#7565c4',
    500: '#1f2aa9',
    950: '#000000',
  },
}
SCSS
$custom: #1f2aa9;
$custom-light: #7565c4;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2aa9",
  "rgb": {
    "r": 31,
    "g": 42,
    "b": 169
  },
  "hsl": {
    "h": 235.217,
    "s": 69,
    "l": 39.216
  },
  "oklch": {
    "l": 0.38133,
    "c": 0.19727,
    "h": 269.1
  },
  "luminance": 0.04812
}

Semantic roles & 50–950 ramp

primary
#1F2AA9
secondary
#C7BE5D
accent
#DE3CEC
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0613
muted
#7C7A82

Preview Lab

Preview with #1F2AA9

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

Preview Lab → · Contrast checker → · Palette generator →

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