#2F26B6#2F26B6

#2F26B6 is a dark, highly saturated blue. Relative luminance 0.054; OKLCH L 39.9% C 0.212 H 273.7°. Best body text is #FFFFFF at 10.13:1 contrast (WCAG AA passes).

Color values

HEX#2F26B6
RGBrgb(47, 38, 182)
HSLhsl(244, 65%, 43%)
HSVhsv(244, 79%, 71%)
CMYKcmyk(74.2%, 79.1%, 0%, 28.6%)
CIE-LABlab(27.76, 49.83, -73.25)
CIE-LCHlch(27.76, 88.59, 304.23°)
OKLaboklab(39.9% 0.0139 -0.2119)
OKLCHoklch(39.9% 0.212 273.7)
XYZxyz(10.3061, 5.3669, 44.7397)
Luminance0.0537 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F26B6 #ADB626
analogous
#2665B6 #2F26B6 #7726B6
triadic
#2F26B6 #B62F26 #26B62F
tetradic
#2F26B6 #B62665 #ADB626 #26B677
square
#2F26B6 #B62665 #ADB626 #26B677
split-complementary
#2F26B6 #B67726 #65B626
monochromatic
#151151 #221B83 #2F26B6 #4B42D7 #7B74E2

Accessibility & contrast

On white

10.13
#2F26B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2F26B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F26B6
10.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F26B6#FFFFFF#000000##FFFFFF
##2F26B61.0010.132.0710.13
#FFFFFF10.131.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048BA
Deuteranopia (green-blind)
#003BB4
Tritanopia (blue-blind)
#00526E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f26b6;
/* rgb */ color: rgb(47, 38, 182);
/* oklch */ color: oklch(39.9% 0.212 273.7);
Tailwind
colors: {
  custom: {
    50: '#7e64cd',
    500: '#2f26b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f26b6;
$custom-light: #7e64cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f26b6",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 182
  },
  "hsl": {
    "h": 243.75,
    "s": 65.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.39899,
    "c": 0.21234,
    "h": 273.7
  },
  "luminance": 0.05368
}

Semantic roles & 50–950 ramp

primary
#2F26B6
secondary
#C4C96E
accent
#E83FDE
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0614
muted
#7D7A82

Preview Lab

Preview with #2F26B6

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

Preview Lab → · Contrast checker → · Palette generator →

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