#2F23A7#2F23A7

#2F23A7 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.9% C 0.197 H 275.5°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#2F23A7
RGBrgb(47, 35, 167)
HSLhsl(245, 65%, 40%)
HSVhsv(245, 79%, 65%)
CMYKcmyk(71.9%, 79%, 0%, 34.5%)
CIE-LABlab(25.55, 46.64, -67.90)
CIE-LCHlch(25.55, 82.37, 304.48°)
OKLaboklab(37.87% 0.0188 -0.1963)
OKLCHoklch(37.87% 0.197 275.5)
XYZxyz(8.7461, 4.5956, 36.9778)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F23A7 #9BA723
analogous
#2359A7 #2F23A7 #7123A7
triadic
#2F23A7 #A72F23 #23A72F
tetradic
#2F23A7 #A72359 #9BA723 #23A771
square
#2F23A7 #A72359 #9BA723 #23A771
split-complementary
#2F23A7 #A77123 #59A723
monochromatic
#130E42 #211874 #2F23A7 #4233D4 #7166DF

Accessibility & contrast

On white

10.94
#2F23A7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#2F23A7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F23A7
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F23A7#FFFFFF#000000##FFFFFF
##2F23A71.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AB
Deuteranopia (green-blind)
#0037A5
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f23a7;
/* rgb */ color: rgb(47, 35, 167);
/* oklch */ color: oklch(37.9% 0.197 275.5);
Tailwind
colors: {
  custom: {
    50: '#7b61c2',
    500: '#2f23a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f23a7;
$custom-light: #7b61c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f23a7",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 167
  },
  "hsl": {
    "h": 245.455,
    "s": 65.347,
    "l": 39.608
  },
  "oklch": {
    "l": 0.37867,
    "c": 0.19721,
    "h": 275.5
  },
  "luminance": 0.04596
}

Semantic roles & 50–950 ramp

primary
#2F23A7
secondary
#BBC461
accent
#E83FD9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F23A7

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

Preview Lab → · Contrast checker → · Palette generator →

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