#2F23A1#2F23A1

#2F23A1 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.2% C 0.190 H 276.1°. Best body text is #FFFFFF at 11.19:1 contrast (WCAG AA passes).

Color values

HEX#2F23A1
RGBrgb(47, 35, 161)
HSLhsl(246, 64%, 38%)
HSVhsv(246, 78%, 63%)
CMYKcmyk(70.8%, 78.3%, 0%, 36.9%)
CIE-LABlab(24.89, 44.74, -65.36)
CIE-LCHlch(24.89, 79.20, 304.39°)
OKLaboklab(37.21% 0.0202 -0.1889)
OKLCHoklch(37.21% 0.19 276.1)
XYZxyz(8.2042, 4.3788, 34.1241)
Luminance0.0438 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F23A1 #95A123
analogous
#2356A1 #2F23A1 #6E23A1
triadic
#2F23A1 #A12F23 #23A12F
tetradic
#2F23A1 #A12356 #95A123 #23A16E
square
#2F23A1 #A12356 #95A123 #23A16E
split-complementary
#2F23A1 #A16E23 #56A123
monochromatic
#120D3C #20186F #2F23A1 #3F2FD2 #6D62DD

Accessibility & contrast

On white

11.19
#2F23A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#2F23A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F23A1
11.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F23A1#FFFFFF#000000##FFFFFF
##2F23A11.0011.191.8811.19
#FFFFFF11.191.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00359F
Tritanopia (blue-blind)
#004961
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f23a1;
/* rgb */ color: rgb(47, 35, 161);
/* oklch */ color: oklch(37.2% 0.190 276.1);
Tailwind
colors: {
  custom: {
    50: '#7961be',
    500: '#2f23a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f23a1;
$custom-light: #7961be;
$custom-dark: #000000;
JSON
{
  "hex": "#2f23a1",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 161
  },
  "hsl": {
    "h": 245.714,
    "s": 64.286,
    "l": 38.431
  },
  "oklch": {
    "l": 0.37207,
    "c": 0.19001,
    "h": 276.1
  },
  "luminance": 0.0438
}

Semantic roles & 50–950 ramp

primary
#2F23A1
secondary
#B8C25E
accent
#E741D7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F23A1

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

Preview Lab → · Contrast checker → · Palette generator →

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