#2F26C5#2F26C5

#2F26C5 is a dark, highly saturated blue. Relative luminance 0.060; OKLCH L 41.6% C 0.230 H 272.6°. Best body text is #FFFFFF at 9.53:1 contrast (WCAG AA passes).

Color values

HEX#2F26C5
RGBrgb(47, 38, 197)
HSLhsl(243, 68%, 46%)
HSVhsv(243, 81%, 77%)
CMYKcmyk(76.1%, 80.7%, 0%, 22.7%)
CIE-LABlab(29.46, 54.45, -79.28)
CIE-LCHlch(29.46, 96.18, 304.48°)
OKLaboklab(41.59% 0.0103 -0.2294)
OKLCHoklch(41.59% 0.23 272.6)
XYZxyz(11.9401, 6.0205, 53.3453)
Luminance0.0602 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F26C5 #BCC526
analogous
#266CC5 #2F26C5 #7E26C5
triadic
#2F26C5 #C52F26 #26C52F
tetradic
#2F26C5 #C5266C #BCC526 #26C57E
square
#2F26C5 #C5266C #BCC526 #26C57E
split-complementary
#2F26C5 #C57E26 #6CC526
monochromatic
#17125E #231C92 #2F26C5 #544CDC #857FE6

Accessibility & contrast

On white

9.53
#2F26C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#2F26C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F26C5
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F26C5#FFFFFF#000000##FFFFFF
##2F26C51.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DC9
Deuteranopia (green-blind)
#003EC2
Tritanopia (blue-blind)
#005877
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #2f26c5;
/* rgb */ color: rgb(47, 38, 197);
/* oklch */ color: oklch(41.6% 0.230 272.6);
Tailwind
colors: {
  custom: {
    50: '#8165d8',
    500: '#2f26c5',
    950: '#000000',
  },
}
SCSS
$custom: #2f26c5;
$custom-light: #8165d8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f26c5",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 197
  },
  "hsl": {
    "h": 243.396,
    "s": 67.66,
    "l": 46.078
  },
  "oklch": {
    "l": 0.41586,
    "c": 0.22962,
    "h": 272.6
  },
  "luminance": 0.06022
}

Semantic roles & 50–950 ramp

primary
#2F26C5
secondary
#CACF78
accent
#EB3DE1
background
#F8F6FD
surface
#F0EBFB
border
#CBC6D4
text
#0C0615
muted
#7D7A83

Preview Lab

Preview with #2F26C5

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

Preview Lab → · Contrast checker → · Palette generator →

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