#1F26A7#1F26A7

#1F26A7 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.3% C 0.199 H 269.6°. Best body text is #FFFFFF at 11.09:1 contrast (WCAG AA passes).

Color values

HEX#1F26A7
RGBrgb(31, 38, 167)
HSLhsl(237, 69%, 39%)
HSVhsv(237, 81%, 65%)
CMYKcmyk(81.4%, 77.2%, 0%, 34.5%)
CIE-LABlab(25.16, 43.81, -68.58)
CIE-LCHlch(25.16, 81.38, 302.57°)
OKLaboklab(37.34% -0.0013 -0.1987)
OKLCHoklch(37.34% 0.199 269.6)
XYZxyz(8.2309, 4.4666, 36.9801)
Luminance0.0447 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F26A7 #A7A01F
analogous
#1F6AA7 #1F26A7 #5C1FA7
triadic
#1F26A7 #A71F26 #26A71F
tetradic
#1F26A7 #A71F6A #A7A01F #1FA75C
square
#1F26A7 #A71F6A #A7A01F #1FA75C
split-complementary
#1F26A7 #A75C1F #6AA71F
monochromatic
#0C0F40 #151A73 #1F26A7 #2B34D8 #5F66E1

Accessibility & contrast

On white

11.09
#1F26A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1F26A7
11.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F26A7#FFFFFF#000000##FFFFFF
##1F26A71.0011.091.8911.09
#FFFFFF11.091.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0035A5
Tritanopia (blue-blind)
#004D65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f26a7;
/* rgb */ color: rgb(31, 38, 167);
/* oklch */ color: oklch(37.3% 0.199 269.6);
Tailwind
colors: {
  custom: {
    50: '#7562c2',
    500: '#1f26a7',
    950: '#000000',
  },
}
SCSS
$custom: #1f26a7;
$custom-light: #7562c2;
$custom-dark: #000000;
JSON
{
  "hex": "#1f26a7",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 167
  },
  "hsl": {
    "h": 236.912,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37336,
    "c": 0.19866,
    "h": 269.6
  },
  "luminance": 0.04468
}

Semantic roles & 50–950 ramp

primary
#1F26A7
secondary
#C6C05C
accent
#E33CEC
background
#F7F5FC
surface
#EEEAF8
border
#C9C6D1
text
#0A0513
muted
#7C7982

Preview Lab

Preview with #1F26A7

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

Preview Lab → · Contrast checker → · Palette generator →

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