#2F23A3#2F23A3

#2F23A3 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.4% C 0.192 H 275.9°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#2F23A3
RGBrgb(47, 35, 163)
HSLhsl(246, 65%, 39%)
HSVhsv(246, 79%, 64%)
CMYKcmyk(71.2%, 78.5%, 0%, 36.1%)
CIE-LABlab(25.11, 45.37, -66.21)
CIE-LCHlch(25.11, 80.26, 304.42°)
OKLaboklab(37.43% 0.0198 -0.1914)
OKLCHoklch(37.43% 0.192 275.9)
XYZxyz(8.3820, 4.4500, 35.0604)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F23A3 #97A323
analogous
#2357A3 #2F23A3 #6F23A3
triadic
#2F23A3 #A32F23 #23A32F
tetradic
#2F23A3 #A32357 #97A323 #23A36F
square
#2F23A3 #A32357 #97A323 #23A36F
split-complementary
#2F23A3 #A36F23 #57A323
monochromatic
#120D3E #201871 #2F23A3 #4031D3 #6E63DD

Accessibility & contrast

On white

11.11
#2F23A3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#2F23A3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F23A3
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F23A3#FFFFFF#000000##FFFFFF
##2F23A31.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A7
Deuteranopia (green-blind)
#0036A1
Tritanopia (blue-blind)
#004962
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f23a3;
/* rgb */ color: rgb(47, 35, 163);
/* oklch */ color: oklch(37.4% 0.192 275.9);
Tailwind
colors: {
  custom: {
    50: '#7a61c0',
    500: '#2f23a3',
    950: '#000000',
  },
}
SCSS
$custom: #2f23a3;
$custom-light: #7a61c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f23a3",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 163
  },
  "hsl": {
    "h": 245.625,
    "s": 64.646,
    "l": 38.824
  },
  "oklch": {
    "l": 0.37426,
    "c": 0.19243,
    "h": 275.9
  },
  "luminance": 0.04451
}

Semantic roles & 50–950 ramp

primary
#2F23A3
secondary
#B9C35F
accent
#E840D8
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F23A3

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

Preview Lab → · Contrast checker → · Palette generator →

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