#2F26A4#2F26A4

#2F26A4 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.9% C 0.191 H 275.4°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#2F26A4
RGBrgb(47, 38, 164)
HSLhsl(244, 62%, 40%)
HSVhsv(244, 77%, 64%)
CMYKcmyk(71.3%, 76.8%, 0%, 35.7%)
CIE-LABlab(25.77, 44.10, -65.71)
CIE-LCHlch(25.77, 79.14, 303.86°)
OKLaboklab(37.93% 0.0181 -0.19)
OKLCHoklch(37.93% 0.191 275.4)
XYZxyz(8.5640, 4.6701, 35.5648)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F26A4 #9BA426
analogous
#265CA4 #2F26A4 #6E26A4
triadic
#2F26A4 #A42F26 #26A42F
tetradic
#2F26A4 #A4265C #9BA426 #26A46E
square
#2F26A4 #A4265C #9BA426 #26A46E
split-complementary
#2F26A4 #A46E26 #5CA426
monochromatic
#130F41 #211A72 #2F26A4 #4237D1 #7168DC

Accessibility & contrast

On white

10.86
#2F26A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F26A4
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F26A4#FFFFFF#000000##FFFFFF
##2F26A41.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A8
Deuteranopia (green-blind)
#0037A2
Tritanopia (blue-blind)
#004B64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f26a4;
/* rgb */ color: rgb(47, 38, 164);
/* oklch */ color: oklch(37.9% 0.191 275.4);
Tailwind
colors: {
  custom: {
    50: '#7a63c0',
    500: '#2f26a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f26a4;
$custom-light: #7a63c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f26a4",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 164
  },
  "hsl": {
    "h": 244.286,
    "s": 62.376,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37926,
    "c": 0.19086,
    "h": 275.4
  },
  "luminance": 0.04671
}

Semantic roles & 50–950 ramp

primary
#2F26A4
secondary
#BBC264
accent
#E542DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2F26A4

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

Preview Lab → · Contrast checker → · Palette generator →

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