#2F26A1#2F26A1

#2F26A1 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.6% C 0.187 H 275.7°. Best body text is #FFFFFF at 10.98:1 contrast (WCAG AA passes).

Color values

HEX#2F26A1
RGBrgb(47, 38, 161)
HSLhsl(244, 62%, 39%)
HSVhsv(244, 76%, 63%)
CMYKcmyk(70.8%, 76.4%, 0%, 36.9%)
CIE-LABlab(25.45, 43.12, -64.42)
CIE-LCHlch(25.45, 77.53, 303.80°)
OKLaboklab(37.6% 0.0187 -0.1862)
OKLCHoklch(37.6% 0.187 275.7)
XYZxyz(8.2963, 4.5630, 34.1548)
Luminance0.0456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F26A1 #98A126
analogous
#265BA1 #2F26A1 #6D26A1
triadic
#2F26A1 #A12F26 #26A12F
tetradic
#2F26A1 #A1265B #98A126 #26A16D
square
#2F26A1 #A1265B #98A126 #26A16D
split-complementary
#2F26A1 #A16D26 #5BA126
monochromatic
#120F3E #211A6F #2F26A1 #4035CF #6F66DB

Accessibility & contrast

On white

10.98
#2F26A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F26A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F26A1
10.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F26A1#FFFFFF#000000##FFFFFF
##2F26A11.0010.981.9110.98
#FFFFFF10.981.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A5
Deuteranopia (green-blind)
#00379F
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f26a1;
/* rgb */ color: rgb(47, 38, 161);
/* oklch */ color: oklch(37.6% 0.187 275.7);
Tailwind
colors: {
  custom: {
    50: '#7963be',
    500: '#2f26a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f26a1;
$custom-light: #7963be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f26a1",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 161
  },
  "hsl": {
    "h": 244.39,
    "s": 61.809,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37604,
    "c": 0.18719,
    "h": 275.7
  },
  "luminance": 0.04564
}

Semantic roles & 50–950 ramp

primary
#2F26A1
secondary
#BAC162
accent
#E543D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F26A1

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

Preview Lab → · Contrast checker → · Palette generator →

#2F26A1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva