#2F26A6#2F26A6

#2F26A6 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.1% C 0.193 H 275.2°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#2F26A6
RGBrgb(47, 38, 166)
HSLhsl(244, 63%, 40%)
HSVhsv(244, 77%, 65%)
CMYKcmyk(71.7%, 77.1%, 0%, 34.9%)
CIE-LABlab(25.99, 44.74, -66.57)
CIE-LCHlch(25.99, 80.21, 303.91°)
OKLaboklab(38.14% 0.0176 -0.1925)
OKLCHoklch(38.14% 0.193 275.2)
XYZxyz(8.7461, 4.7429, 36.5235)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F26A6 #9DA626
analogous
#265DA6 #2F26A6 #6F26A6
triadic
#2F26A6 #A62F26 #26A62F
tetradic
#2F26A6 #A6265D #9DA626 #26A66F
square
#2F26A6 #A6265D #9DA626 #26A66F
split-complementary
#2F26A6 #A66F26 #5DA626
monochromatic
#130F42 #211B74 #2F26A6 #4338D1 #726ADD

Accessibility & contrast

On white

10.78
#2F26A6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#2F26A6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F26A6
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F26A6#FFFFFF#000000##FFFFFF
##2F26A61.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AA
Deuteranopia (green-blind)
#0038A4
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f26a6;
/* rgb */ color: rgb(47, 38, 166);
/* oklch */ color: oklch(38.1% 0.193 275.2);
Tailwind
colors: {
  custom: {
    50: '#7a63c2',
    500: '#2f26a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f26a6;
$custom-light: #7a63c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f26a6",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 166
  },
  "hsl": {
    "h": 244.219,
    "s": 62.745,
    "l": 40
  },
  "oklch": {
    "l": 0.38142,
    "c": 0.19329,
    "h": 275.2
  },
  "luminance": 0.04744
}

Semantic roles & 50–950 ramp

primary
#2F26A6
secondary
#BCC365
accent
#E642DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2F26A6

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

Preview Lab → · Contrast checker → · Palette generator →

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