#1F26A8#1F26A8

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

Color values

HEX#1F26A8
RGBrgb(31, 38, 168)
HSLhsl(237, 69%, 39%)
HSVhsv(237, 82%, 66%)
CMYKcmyk(81.5%, 77.4%, 0%, 34.1%)
CIE-LABlab(25.27, 44.15, -68.99)
CIE-LCHlch(25.27, 81.91, 302.61°)
OKLaboklab(37.45% -0.0015 -0.1999)
OKLCHoklch(37.45% 0.2 269.6)
XYZxyz(8.3237, 4.5037, 37.4688)
Luminance0.0450 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1F26A8 #A8A11F
analogous
#1F6BA8 #1F26A8 #5D1FA8
triadic
#1F26A8 #A81F26 #26A81F
tetradic
#1F26A8 #A81F6B #A8A11F #1FA85D
square
#1F26A8 #A81F6B #A8A11F #1FA85D
split-complementary
#1F26A8 #A85D1F #6BA81F
monochromatic
#0C0F41 #151A74 #1F26A8 #2C35D8 #6066E2

Accessibility & contrast

On white

11.05
#1F26A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#1F26A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1F26A8
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1F26A8#FFFFFF#000000##FFFFFF
##1F26A81.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0035A6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #1f26a8;
/* rgb */ color: rgb(31, 38, 168);
/* oklch */ color: oklch(37.5% 0.200 269.6);
Tailwind
colors: {
  custom: {
    50: '#7562c3',
    500: '#1f26a8',
    950: '#000000',
  },
}
SCSS
$custom: #1f26a8;
$custom-light: #7562c3;
$custom-dark: #000000;
JSON
{
  "hex": "#1f26a8",
  "rgb": {
    "r": 31,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 236.934,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.3745,
    "c": 0.19988,
    "h": 269.6
  },
  "luminance": 0.04505
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1F26A8

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

Preview Lab → · Contrast checker → · Palette generator →

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