#2F23B7#2F23B7

#2F23B7 is a dark, highly saturated blue. Relative luminance 0.052; OKLCH L 39.7% C 0.216 H 273.9°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#2F23B7
RGBrgb(47, 35, 183)
HSLhsl(245, 68%, 43%)
HSVhsv(245, 81%, 72%)
CMYKcmyk(74.3%, 80.9%, 0%, 28.2%)
CIE-LABlab(27.36, 51.60, -74.49)
CIE-LCHlch(27.36, 90.62, 304.71°)
OKLaboklab(39.66% 0.0147 -0.2155)
OKLCHoklch(39.66% 0.216 273.9)
XYZxyz(10.3177, 5.2242, 45.2552)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F23B7 #ABB723
analogous
#2361B7 #2F23B7 #7923B7
triadic
#2F23B7 #B72F23 #23B72F
tetradic
#2F23B7 #B72361 #ABB723 #23B779
square
#2F23B7 #B72361 #ABB723 #23B779
split-complementary
#2F23B7 #B77923 #61B723
monochromatic
#150F50 #221984 #2F23B7 #4A3DDA #7A71E4

Accessibility & contrast

On white

10.27
#2F23B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#2F23B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F23B7
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F23B7#FFFFFF#000000##FFFFFF
##2F23B71.0010.272.0510.27
#FFFFFF10.271.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047BB
Deuteranopia (green-blind)
#003AB4
Tritanopia (blue-blind)
#00516E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2f23b7;
/* rgb */ color: rgb(47, 35, 183);
/* oklch */ color: oklch(39.7% 0.216 273.9);
Tailwind
colors: {
  custom: {
    50: '#7e62ce',
    500: '#2f23b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f23b7;
$custom-light: #7e62ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f23b7",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 183
  },
  "hsl": {
    "h": 244.865,
    "s": 67.89,
    "l": 42.745
  },
  "oklch": {
    "l": 0.3966,
    "c": 0.21596,
    "h": 273.9
  },
  "luminance": 0.05225
}

Semantic roles & 50–950 ramp

primary
#2F23B7
secondary
#C3CA6B
accent
#EB3DDD
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #2F23B7

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

Preview Lab → · Contrast checker → · Palette generator →

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