#2F2EA8#2F2EA8

#2F2EA8 is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.5% C 0.188 H 274.0°. Best body text is #FFFFFF at 10.11:1 contrast (WCAG AA passes).

Color values

HEX#2F2EA8
RGBrgb(47, 46, 168)
HSLhsl(240, 57%, 42%)
HSVhsv(240, 73%, 66%)
CMYKcmyk(72%, 72.6%, 0%, 34.1%)
CIE-LABlab(27.80, 40.89, -64.78)
CIE-LCHlch(27.80, 76.61, 302.26°)
OKLaboklab(39.49% 0.013 -0.1873)
OKLCHoklch(39.49% 0.188 274)
XYZxyz(9.2148, 5.3846, 37.5919)
Luminance0.0539 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2EA8 #A7A82E
analogous
#2E6AA8 #2F2EA8 #6C2EA8
triadic
#2F2EA8 #A82F2E #2EA82F
tetradic
#2F2EA8 #A82E6A #A7A82E #2EA86C
square
#2F2EA8 #A82E6A #A7A82E #2EA86C
split-complementary
#2F2EA8 #A86C2E #6AA82E
monochromatic
#141448 #222178 #2F2EA8 #4847CD #7877DA

Accessibility & contrast

On white

10.11
#2F2EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#2F2EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2EA8
10.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2EA8#FFFFFF#000000##FFFFFF
##2F2EA81.0010.112.0810.11
#FFFFFF10.111.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AC
Deuteranopia (green-blind)
#003CA6
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2f2ea8;
/* rgb */ color: rgb(47, 46, 168);
/* oklch */ color: oklch(39.5% 0.188 274.0);
Tailwind
colors: {
  custom: {
    50: '#7a68c3',
    500: '#2f2ea8',
    950: '#000000',
  },
}
SCSS
$custom: #2f2ea8;
$custom-light: #7a68c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2ea8",
  "rgb": {
    "r": 47,
    "g": 46,
    "b": 168
  },
  "hsl": {
    "h": 240.492,
    "s": 57.009,
    "l": 41.961
  },
  "oklch": {
    "l": 0.39491,
    "c": 0.18779,
    "h": 274
  },
  "luminance": 0.05385
}

Semantic roles & 50–950 ramp

primary
#2F2EA8
secondary
#C1C270
accent
#E048DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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