#2F26A0#2F26A0

#2F26A0 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.186 H 275.8°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).

Color values

HEX#2F26A0
RGBrgb(47, 38, 160)
HSLhsl(244, 62%, 39%)
HSVhsv(244, 76%, 63%)
CMYKcmyk(70.6%, 76.3%, 0%, 37.3%)
CIE-LABlab(25.35, 42.80, -63.99)
CIE-LCHlch(25.35, 76.98, 303.78°)
OKLaboklab(37.5% 0.0189 -0.185)
OKLCHoklch(37.5% 0.186 275.8)
XYZxyz(8.2085, 4.5279, 33.6923)
Luminance0.0453 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F26A0 #97A026
analogous
#265AA0 #2F26A0 #6C26A0
triadic
#2F26A0 #A02F26 #26A02F
tetradic
#2F26A0 #A0265A #97A026 #26A06C
square
#2F26A0 #A0265A #97A026 #26A06C
split-complementary
#2F26A0 #A06C26 #5AA026
monochromatic
#120F3D #201A6F #2F26A0 #4034CF #6E66DB

Accessibility & contrast

On white

11.02
#2F26A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2F26A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F26A0
11.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F26A0#FFFFFF#000000##FFFFFF
##2F26A01.0011.021.9111.02
#FFFFFF11.021.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A4
Deuteranopia (green-blind)
#00379E
Tritanopia (blue-blind)
#004A61
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f26a0;
/* rgb */ color: rgb(47, 38, 160);
/* oklch */ color: oklch(37.5% 0.186 275.8);
Tailwind
colors: {
  custom: {
    50: '#7963bd',
    500: '#2f26a0',
    950: '#000000',
  },
}
SCSS
$custom: #2f26a0;
$custom-light: #7963bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f26a0",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 160
  },
  "hsl": {
    "h": 244.426,
    "s": 61.616,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37497,
    "c": 0.18596,
    "h": 275.8
  },
  "luminance": 0.04529
}

Semantic roles & 50–950 ramp

primary
#2F26A0
secondary
#B9C061
accent
#E543D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0A0512
muted
#7C7A81

Preview Lab

Preview with #2F26A0

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

Preview Lab → · Contrast checker → · Palette generator →

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