#1F26A6#1F26A6

#1F26A6 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.197 H 269.7°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#1F26A6
RGBrgb(31, 38, 166)
HSLhsl(237, 69%, 39%)
HSVhsv(237, 81%, 65%)
CMYKcmyk(81.3%, 77.1%, 0%, 34.9%)
CIE-LABlab(25.04, 43.47, -68.16)
CIE-LCHlch(25.04, 80.84, 302.53°)
OKLaboklab(37.22% -0.0012 -0.1974)
OKLCHoklch(37.22% 0.197 269.7)
XYZxyz(8.1388, 4.4298, 36.4951)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F26A6 #A69F1F
analogous
#1F69A6 #1F26A6 #5B1FA6
triadic
#1F26A6 #A61F26 #26A61F
tetradic
#1F26A6 #A61F69 #A69F1F #1FA65B
square
#1F26A6 #A61F69 #A69F1F #1FA65B
split-complementary
#1F26A6 #A65B1F #69A61F
monochromatic
#0C0E3F #151A72 #1F26A6 #2B34D7 #5E65E1

Accessibility & contrast

On white

11.13
#1F26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#1F26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F26A6
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F26A6#FFFFFF#000000##FFFFFF
##1F26A61.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AA
Deuteranopia (green-blind)
#0034A4
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #1f26a6;
/* rgb */ color: rgb(31, 38, 166);
/* oklch */ color: oklch(37.2% 0.197 269.7);
Tailwind
colors: {
  custom: {
    50: '#7562c2',
    500: '#1f26a6',
    950: '#000000',
  },
}
SCSS
$custom: #1f26a6;
$custom-light: #7562c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f26a6",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 236.889,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37223,
    "c": 0.19745,
    "h": 269.7
  },
  "luminance": 0.04431
}

Semantic roles & 50–950 ramp

primary
#1F26A6
secondary
#C5C05B
accent
#E23CEB
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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