#2F26B1#2F26B1

#2F26B1 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.3% C 0.206 H 274.2°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#2F26B1
RGBrgb(47, 38, 177)
HSLhsl(244, 65%, 42%)
HSVhsv(244, 79%, 69%)
CMYKcmyk(73.4%, 78.5%, 0%, 30.6%)
CIE-LABlab(27.20, 48.25, -71.19)
CIE-LCHlch(27.20, 86.00, 304.13°)
OKLaboklab(39.35% 0.0151 -0.2059)
OKLCHoklch(39.35% 0.206 274.2)
XYZxyz(9.7986, 5.1639, 42.0668)
Luminance0.0517 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F26B1 #A8B126
analogous
#2663B1 #2F26B1 #7526B1
triadic
#2F26B1 #B12F26 #26B12F
tetradic
#2F26B1 #B12663 #A8B126 #26B175
square
#2F26B1 #B12663 #A8B126 #26B175
split-complementary
#2F26B1 #B17526 #63B126
monochromatic
#14104C #221B7F #2F26B1 #483FD6 #7871E0

Accessibility & contrast

On white

10.33
#2F26B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F26B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F26B1
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F26B1#FFFFFF#000000##FFFFFF
##2F26B11.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B5
Deuteranopia (green-blind)
#003AAF
Tritanopia (blue-blind)
#00506B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f26b1;
/* rgb */ color: rgb(47, 38, 177);
/* oklch */ color: oklch(39.3% 0.206 274.2);
Tailwind
colors: {
  custom: {
    50: '#7d64ca',
    500: '#2f26b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f26b1;
$custom-light: #7d64ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f26b1",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 177
  },
  "hsl": {
    "h": 243.885,
    "s": 64.651,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39345,
    "c": 0.20647,
    "h": 274.2
  },
  "luminance": 0.05165
}

Semantic roles & 50–950 ramp

primary
#2F26B1
secondary
#C1C76B
accent
#E840DD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2F26B1

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

Preview Lab → · Contrast checker → · Palette generator →

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