#2F23A4#2F23A4

#2F23A4 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.5% C 0.194 H 275.8°. Best body text is #FFFFFF at 11.07:1 contrast (WCAG AA passes).

Color values

HEX#2F23A4
RGBrgb(47, 35, 164)
HSLhsl(246, 65%, 39%)
HSVhsv(246, 79%, 64%)
CMYKcmyk(71.3%, 78.7%, 0%, 35.7%)
CIE-LABlab(25.22, 45.69, -66.63)
CIE-LCHlch(25.22, 80.79, 304.44°)
OKLaboklab(37.54% 0.0195 -0.1926)
OKLCHoklch(37.54% 0.194 275.8)
XYZxyz(8.4720, 4.4859, 35.5342)
Luminance0.0449 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F23A4 #98A423
analogous
#2358A4 #2F23A4 #7023A4
triadic
#2F23A4 #A42F23 #23A42F
tetradic
#2F23A4 #A42358 #98A423 #23A470
square
#2F23A4 #A42358 #98A423 #23A470
split-complementary
#2F23A4 #A47023 #58A423
monochromatic
#120D3F #211872 #2F23A4 #4031D3 #6F64DE

Accessibility & contrast

On white

11.07
#2F23A4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2F23A4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F23A4
11.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F23A4#FFFFFF#000000##FFFFFF
##2F23A41.0011.071.9011.07
#FFFFFF11.071.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041A8
Deuteranopia (green-blind)
#0036A2
Tritanopia (blue-blind)
#004A63
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f23a4;
/* rgb */ color: rgb(47, 35, 164);
/* oklch */ color: oklch(37.5% 0.194 275.8);
Tailwind
colors: {
  custom: {
    50: '#7a61c0',
    500: '#2f23a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f23a4;
$custom-light: #7a61c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f23a4",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 164
  },
  "hsl": {
    "h": 245.581,
    "s": 64.824,
    "l": 39.02
  },
  "oklch": {
    "l": 0.37536,
    "c": 0.19362,
    "h": 275.8
  },
  "luminance": 0.04487
}

Semantic roles & 50–950 ramp

primary
#2F23A4
secondary
#BAC360
accent
#E840D8
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F23A4

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

Preview Lab → · Contrast checker → · Palette generator →

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