#1F2DA6#1F2DA6

#1F2DA6 is a dark, vivid blue. Relative luminance 0.049; OKLCH L 38.3% C 0.191 H 268.9°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#1F2DA6
RGBrgb(31, 45, 166)
HSLhsl(234, 69%, 39%)
HSVhsv(234, 81%, 65%)
CMYKcmyk(81.3%, 72.9%, 0%, 34.9%)
CIE-LABlab(26.51, 39.36, -65.74)
CIE-LCHlch(26.51, 76.62, 300.91°)
OKLaboklab(38.27% -0.0036 -0.1905)
OKLCHoklch(38.27% 0.191 268.9)
XYZxyz(8.3840, 4.9203, 36.5768)
Luminance0.0492 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F2DA6 #A6981F
analogous
#1F70A6 #1F2DA6 #541FA6
triadic
#1F2DA6 #A61F2D #2DA61F
tetradic
#1F2DA6 #A61F70 #A6981F #1FA654
square
#1F2DA6 #A61F70 #A6981F #1FA654
split-complementary
#1F2DA6 #A6541F #70A61F
monochromatic
#0C113F #151F72 #1F2DA6 #2B3DD7 #5E6CE1

Accessibility & contrast

On white

10.58
#1F2DA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#1F2DA6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F2DA6
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F2DA6#FFFFFF#000000##FFFFFF
##1F2DA61.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045AA
Deuteranopia (green-blind)
#0038A4
Tritanopia (blue-blind)
#005066
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #1f2da6;
/* rgb */ color: rgb(31, 45, 166);
/* oklch */ color: oklch(38.3% 0.191 268.9);
Tailwind
colors: {
  custom: {
    50: '#7467c2',
    500: '#1f2da6',
    950: '#000000',
  },
}
SCSS
$custom: #1f2da6;
$custom-light: #7467c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f2da6",
  "rgb": {
    "r": 31,
    "g": 45,
    "b": 166
  },
  "hsl": {
    "h": 233.778,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.38265,
    "c": 0.19051,
    "h": 268.9
  },
  "luminance": 0.04921
}

Semantic roles & 50–950 ramp

primary
#1F2DA6
secondary
#C5BA5B
accent
#D93CEB
background
#F7F6FC
surface
#EEEBF8
border
#C9C6D1
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #1F2DA6

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

Preview Lab → · Contrast checker → · Palette generator →

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