#2F26A2#2F26A2

#2F26A2 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.7% C 0.188 H 275.6°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2F26A2
RGBrgb(47, 38, 162)
HSLhsl(244, 62%, 39%)
HSVhsv(244, 77%, 64%)
CMYKcmyk(71%, 76.5%, 0%, 36.5%)
CIE-LABlab(25.56, 43.45, -64.86)
CIE-LCHlch(25.56, 78.06, 303.82°)
OKLaboklab(37.71% 0.0185 -0.1875)
OKLCHoklch(37.71% 0.188 275.6)
XYZxyz(8.3848, 4.5984, 34.6211)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F26A2 #99A226
analogous
#265BA2 #2F26A2 #6D26A2
triadic
#2F26A2 #A22F26 #26A22F
tetradic
#2F26A2 #A2265B #99A226 #26A26D
square
#2F26A2 #A2265B #99A226 #26A26D
split-complementary
#2F26A2 #A26D26 #5BA226
monochromatic
#120F3F #211A70 #2F26A2 #4135D0 #6F67DB

Accessibility & contrast

On white

10.94
#2F26A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F26A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F26A2
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F26A2#FFFFFF#000000##FFFFFF
##2F26A21.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A6
Deuteranopia (green-blind)
#0037A0
Tritanopia (blue-blind)
#004A62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f26a2;
/* rgb */ color: rgb(47, 38, 162);
/* oklch */ color: oklch(37.7% 0.188 275.6);
Tailwind
colors: {
  custom: {
    50: '#7963bf',
    500: '#2f26a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f26a2;
$custom-light: #7963bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f26a2",
  "rgb": {
    "r": 47,
    "g": 38,
    "b": 162
  },
  "hsl": {
    "h": 244.355,
    "s": 62,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37711,
    "c": 0.18841,
    "h": 275.6
  },
  "luminance": 0.04599
}

Semantic roles & 50–950 ramp

primary
#2F26A2
secondary
#BAC163
accent
#E543D9
background
#F8F6FB
surface
#EFEBF7
border
#CAC6D0
text
#0B0512
muted
#7C7A81

Preview Lab

Preview with #2F26A2

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

Preview Lab → · Contrast checker → · Palette generator →

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