#2F26AF#2F26AF

#2F26AF is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.1% C 0.204 H 274.4°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#2F26AF
RGBrgb(47, 38, 175)
HSLhsl(244, 64%, 42%)
HSVhsv(244, 78%, 69%)
CMYKcmyk(73.1%, 78.3%, 0%, 31.4%)
CIE-LABlab(26.98, 47.62, -70.36)
CIE-LCHlch(26.98, 84.96, 304.09°)
OKLaboklab(39.13% 0.0155 -0.2035)
OKLCHoklch(39.13% 0.204 274.4)
XYZxyz(9.6007, 5.0848, 41.0246)
Luminance0.0509 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F26AF #A6AF26
analogous
#2661AF #2F26AF #7426AF
triadic
#2F26AF #AF2F26 #26AF2F
tetradic
#2F26AF #AF2661 #A6AF26 #26AF74
square
#2F26AF #AF2661 #A6AF26 #26AF74
split-complementary
#2F26AF #AF7426 #61AF26
monochromatic
#14104A #211B7D #2F26AF #473DD5 #7770E0

Accessibility & contrast

On white

10.41
#2F26AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#2F26AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F26AF
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F26AF#FFFFFF#000000##FFFFFF
##2F26AF1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B3
Deuteranopia (green-blind)
#0039AD
Tritanopia (blue-blind)
#004F6A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f26af;
/* rgb */ color: rgb(47, 38, 175);
/* oklch */ color: oklch(39.1% 0.204 274.4);
Tailwind
colors: {
  custom: {
    50: '#7c63c8',
    500: '#2f26af',
    950: '#000000',
  },
}
SCSS
$custom: #2f26af;
$custom-light: #7c63c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f26af",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 175
  },
  "hsl": {
    "h": 243.942,
    "s": 64.319,
    "l": 41.765
  },
  "oklch": {
    "l": 0.39125,
    "c": 0.20409,
    "h": 274.4
  },
  "luminance": 0.05086
}

Semantic roles & 50–950 ramp

primary
#2F26AF
secondary
#C1C76A
accent
#E740DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0513
muted
#7C7A82

Preview Lab

Preview with #2F26AF

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

Preview Lab → · Contrast checker → · Palette generator →

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