#2F26A3#2F26A3

#2F26A3 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.8% C 0.190 H 275.5°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2F26A3
RGBrgb(47, 38, 163)
HSLhsl(244, 62%, 39%)
HSVhsv(244, 77%, 64%)
CMYKcmyk(71.2%, 76.7%, 0%, 36.1%)
CIE-LABlab(25.67, 43.77, -65.28)
CIE-LCHlch(25.67, 78.60, 303.84°)
OKLaboklab(37.82% 0.0183 -0.1887)
OKLCHoklch(37.82% 0.19 275.5)
XYZxyz(8.4741, 4.6341, 35.0911)
Luminance0.0464 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F26A3 #9AA326
analogous
#265CA3 #2F26A3 #6E26A3
triadic
#2F26A3 #A32F26 #26A32F
tetradic
#2F26A3 #A3265C #9AA326 #26A36E
square
#2F26A3 #A3265C #9AA326 #26A36E
split-complementary
#2F26A3 #A36E26 #5CA326
monochromatic
#120F40 #211A71 #2F26A3 #4136D0 #7068DC

Accessibility & contrast

On white

10.90
#2F26A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F26A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F26A3
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F26A3#FFFFFF#000000##FFFFFF
##2F26A31.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A7
Deuteranopia (green-blind)
#0037A1
Tritanopia (blue-blind)
#004B63
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f26a3;
/* rgb */ color: rgb(47, 38, 163);
/* oklch */ color: oklch(37.8% 0.190 275.5);
Tailwind
colors: {
  custom: {
    50: '#7a63c0',
    500: '#2f26a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f26a3;
$custom-light: #7a63c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f26a3",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 163
  },
  "hsl": {
    "h": 244.32,
    "s": 62.189,
    "l": 39.412
  },
  "oklch": {
    "l": 0.37819,
    "c": 0.18963,
    "h": 275.5
  },
  "luminance": 0.04635
}

Semantic roles & 50–950 ramp

primary
#2F26A3
secondary
#BBC263
accent
#E543DA
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2F26A3

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

Preview Lab → · Contrast checker → · Palette generator →

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