#2F23A2#2F23A2

#2F23A2 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 37.3% C 0.191 H 276.0°. Best body text is #FFFFFF at 11.15:1 contrast (WCAG AA passes).

Color values

HEX#2F23A2
RGBrgb(47, 35, 162)
HSLhsl(246, 64%, 39%)
HSVhsv(246, 78%, 64%)
CMYKcmyk(71%, 78.4%, 0%, 36.5%)
CIE-LABlab(25.00, 45.06, -65.78)
CIE-LCHlch(25.00, 79.73, 304.41°)
OKLaboklab(37.32% 0.02 -0.1902)
OKLCHoklch(37.32% 0.191 276)
XYZxyz(8.2928, 4.4143, 34.5904)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F23A2 #96A223
analogous
#2356A2 #2F23A2 #6E23A2
triadic
#2F23A2 #A22F23 #23A22F
tetradic
#2F23A2 #A22356 #96A223 #23A26E
square
#2F23A2 #A22356 #96A223 #23A26E
split-complementary
#2F23A2 #A26E23 #56A223
monochromatic
#120D3D #201870 #2F23A2 #3F30D2 #6E62DD

Accessibility & contrast

On white

11.15
#2F23A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F23A2
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F23A2#FFFFFF#000000##FFFFFF
##2F23A21.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A6
Deuteranopia (green-blind)
#0036A0
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f23a2;
/* rgb */ color: rgb(47, 35, 162);
/* oklch */ color: oklch(37.3% 0.191 276.0);
Tailwind
colors: {
  custom: {
    50: '#7a61bf',
    500: '#2f23a2',
    950: '#000000',
  },
}
SCSS
$custom: #2f23a2;
$custom-light: #7a61bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f23a2",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 162
  },
  "hsl": {
    "h": 245.669,
    "s": 64.467,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37316,
    "c": 0.19122,
    "h": 276
  },
  "luminance": 0.04415
}

Semantic roles & 50–950 ramp

primary
#2F23A2
secondary
#B9C25E
accent
#E740D8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F23A2

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

Preview Lab → · Contrast checker → · Palette generator →

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