#2F26A5#2F26A5

#2F26A5 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.0% C 0.192 H 275.3°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#2F26A5
RGBrgb(47, 38, 165)
HSLhsl(244, 63%, 40%)
HSVhsv(244, 77%, 65%)
CMYKcmyk(71.5%, 77%, 0%, 35.3%)
CIE-LABlab(25.88, 44.42, -66.14)
CIE-LCHlch(25.88, 79.67, 303.89°)
OKLaboklab(38.03% 0.0178 -0.1912)
OKLCHoklch(38.03% 0.192 275.3)
XYZxyz(8.6547, 4.7064, 36.0423)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F26A5 #9CA526
analogous
#265DA5 #2F26A5 #6F26A5
triadic
#2F26A5 #A52F26 #26A52F
tetradic
#2F26A5 #A5265D #9CA526 #26A56F
square
#2F26A5 #A5265D #9CA526 #26A56F
split-complementary
#2F26A5 #A56F26 #5DA526
monochromatic
#130F42 #211B73 #2F26A5 #4237D1 #7169DC

Accessibility & contrast

On white

10.82
#2F26A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2F26A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F26A5
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F26A5#FFFFFF#000000##FFFFFF
##2F26A51.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A9
Deuteranopia (green-blind)
#0037A3
Tritanopia (blue-blind)
#004C64
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f26a5;
/* rgb */ color: rgb(47, 38, 165);
/* oklch */ color: oklch(38.0% 0.192 275.3);
Tailwind
colors: {
  custom: {
    50: '#7a63c1',
    500: '#2f26a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f26a5;
$custom-light: #7a63c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f26a5",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 165
  },
  "hsl": {
    "h": 244.252,
    "s": 62.562,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38034,
    "c": 0.19208,
    "h": 275.3
  },
  "luminance": 0.04707
}

Semantic roles & 50–950 ramp

primary
#2F26A5
secondary
#BCC364
accent
#E642DA
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2F26A5

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

Preview Lab → · Contrast checker → · Palette generator →

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