#2F2CAB#2F2CAB

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

Color values

HEX#2F2CAB
RGBrgb(47, 44, 171)
HSLhsl(241, 59%, 42%)
HSVhsv(241, 74%, 67%)
CMYKcmyk(72.5%, 74.3%, 0%, 32.9%)
CIE-LABlab(27.70, 43.05, -66.77)
CIE-LCHlch(27.70, 79.44, 302.82°)
OKLaboklab(39.51% 0.0136 -0.1931)
OKLCHoklch(39.51% 0.194 274)
XYZxyz(9.4212, 5.3450, 39.0554)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F2CAB #A8AB2C
analogous
#2C69AB #2F2CAB #6E2CAB
triadic
#2F2CAB #AB2F2C #2CAB2F
tetradic
#2F2CAB #AB2C69 #A8AB2C #2CAB6E
square
#2F2CAB #AB2C69 #A8AB2C #2CAB6E
split-complementary
#2F2CAB #AB6E2C #69AB2C
monochromatic
#14134A #221F7A #2F2CAB #4845CF #7876DC

Accessibility & contrast

On white

10.15
#2F2CAB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#2F2CAB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F2CAB
10.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F2CAB#FFFFFF#000000##FFFFFF
##2F2CAB1.0010.152.0710.15
#FFFFFF10.151.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047AF
Deuteranopia (green-blind)
#003BA9
Tritanopia (blue-blind)
#005169
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f2cab;
/* rgb */ color: rgb(47, 44, 171);
/* oklch */ color: oklch(39.5% 0.194 274.0);
Tailwind
colors: {
  custom: {
    50: '#7b67c5',
    500: '#2f2cab',
    950: '#000000',
  },
}
SCSS
$custom: #2f2cab;
$custom-light: #7b67c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f2cab",
  "rgb": {
    "r": 47,
    "g": 44,
    "b": 171
  },
  "hsl": {
    "h": 241.417,
    "s": 59.07,
    "l": 42.157
  },
  "oklch": {
    "l": 0.39506,
    "c": 0.19359,
    "h": 274
  },
  "luminance": 0.05346
}

Semantic roles & 50–950 ramp

primary
#2F2CAB
secondary
#C1C36F
accent
#E246DF
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82

Preview Lab

Preview with #2F2CAB

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

Preview Lab → · Contrast checker → · Palette generator →

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