#2F23B5#2F23B5

#2F23B5 is a dark, highly saturated blue. Relative luminance 0.051; OKLCH L 39.4% C 0.214 H 274.1°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#2F23B5
RGBrgb(47, 35, 181)
HSLhsl(245, 68%, 42%)
HSVhsv(245, 81%, 71%)
CMYKcmyk(74%, 80.7%, 0%, 29%)
CIE-LABlab(27.13, 50.99, -73.68)
CIE-LCHlch(27.13, 89.60, 304.68°)
OKLaboklab(39.43% 0.0152 -0.2131)
OKLCHoklch(39.43% 0.214 274.1)
XYZxyz(10.1110, 5.1416, 44.1667)
Luminance0.0514 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F23B5 #A9B523
analogous
#2360B5 #2F23B5 #7823B5
triadic
#2F23B5 #B52F23 #23B52F
tetradic
#2F23B5 #B52360 #A9B523 #23B578
square
#2F23B5 #B52360 #A9B523 #23B578
split-complementary
#2F23B5 #B57823 #60B523
monochromatic
#140F4E #221982 #2F23B5 #493CD9 #796FE3

Accessibility & contrast

On white

10.35
#2F23B5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#2F23B5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F23B5
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F23B5#FFFFFF#000000##FFFFFF
##2F23B51.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0047B9
Deuteranopia (green-blind)
#0039B3
Tritanopia (blue-blind)
#00516D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #2f23b5;
/* rgb */ color: rgb(47, 35, 181);
/* oklch */ color: oklch(39.4% 0.214 274.1);
Tailwind
colors: {
  custom: {
    50: '#7e62cd',
    500: '#2f23b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f23b5;
$custom-light: #7e62cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f23b5",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 181
  },
  "hsl": {
    "h": 244.932,
    "s": 67.593,
    "l": 42.353
  },
  "oklch": {
    "l": 0.39434,
    "c": 0.21365,
    "h": 274.1
  },
  "luminance": 0.05143
}

Semantic roles & 50–950 ramp

primary
#2F23B5
secondary
#C2CA6A
accent
#EA3DDC
background
#F8F6FC
surface
#F0EBF9
border
#CBC6D2
text
#0C0514
muted
#7D7A82

Preview Lab

Preview with #2F23B5

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

Preview Lab → · Contrast checker → · Palette generator →

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