#2F26A8#2F26A8

#2F26A8 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 38.4% C 0.196 H 275.0°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#2F26A8
RGBrgb(47, 38, 168)
HSLhsl(244, 63%, 40%)
HSVhsv(244, 77%, 66%)
CMYKcmyk(72%, 77.4%, 0%, 34.1%)
CIE-LABlab(26.21, 45.39, -67.42)
CIE-LCHlch(26.21, 81.27, 303.95°)
OKLaboklab(38.36% 0.0171 -0.195)
OKLCHoklch(38.36% 0.196 275)
XYZxyz(8.9310, 4.8169, 37.4973)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F26A8 #9FA826
analogous
#265EA8 #2F26A8 #7026A8
triadic
#2F26A8 #A82F26 #26A82F
tetradic
#2F26A8 #A8265E #9FA826 #26A870
square
#2F26A8 #A8265E #9FA826 #26A870
split-complementary
#2F26A8 #A87026 #5EA826
monochromatic
#130F44 #211B76 #2F26A8 #4439D2 #736BDE

Accessibility & contrast

On white

10.69
#2F26A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#2F26A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F26A8
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F26A8#FFFFFF#000000##FFFFFF
##2F26A81.0010.691.9610.69
#FFFFFF10.691.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044AC
Deuteranopia (green-blind)
#0038A6
Tritanopia (blue-blind)
#004D66
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2f26a8;
/* rgb */ color: rgb(47, 38, 168);
/* oklch */ color: oklch(38.4% 0.196 275.0);
Tailwind
colors: {
  custom: {
    50: '#7b63c3',
    500: '#2f26a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f26a8;
$custom-light: #7b63c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f26a8",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 168
  },
  "hsl": {
    "h": 244.154,
    "s": 63.107,
    "l": 40.392
  },
  "oklch": {
    "l": 0.38359,
    "c": 0.19571,
    "h": 275
  },
  "luminance": 0.04818
}

Semantic roles & 50–950 ramp

primary
#2F26A8
secondary
#BDC466
accent
#E642DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2F26A8

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

Preview Lab → · Contrast checker → · Palette generator →

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