#2F23D4#2F23D4

#2F23D4 is a dark, highly saturated blue. Relative luminance 0.066; OKLCH L 43.0% C 0.248 H 271.7°. Best body text is #FFFFFF at 9.08:1 contrast (WCAG AA passes).

Color values

HEX#2F23D4
RGBrgb(47, 35, 212)
HSLhsl(244, 72%, 48%)
HSVhsv(244, 83%, 83%)
CMYKcmyk(77.8%, 83.5%, 0%, 16.9%)
CIE-LABlab(30.78, 60.22, -85.84)
CIE-LCHlch(30.78, 104.86, 305.05°)
OKLaboklab(43% 0.0075 -0.2483)
OKLCHoklch(43% 0.248 271.7)
XYZxyz(13.6530, 6.5583, 62.8209)
Luminance0.0656 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F23D4 #C8D423
analogous
#236FD4 #2F23D4 #8723D4
triadic
#2F23D4 #D42F23 #23D42F
tetradic
#2F23D4 #D4236F #C8D423 #23D487
square
#2F23D4 #D4236F #C8D423 #23D487
split-complementary
#2F23D4 #D48723 #6FD423
monochromatic
#18126B #231A9F #2F23D4 #5C52E2 #8D86EB

Accessibility & contrast

On white

9.08
#2F23D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#2F23D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F23D4
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F23D4#FFFFFF#000000##FFFFFF
##2F23D41.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051D9
Deuteranopia (green-blind)
#003FD1
Tritanopia (blue-blind)
#005D7F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2f23d4;
/* rgb */ color: rgb(47, 35, 212);
/* oklch */ color: oklch(43.0% 0.248 271.7);
Tailwind
colors: {
  custom: {
    50: '#8564e3',
    500: '#2f23d4',
    950: '#000000',
  },
}
SCSS
$custom: #2f23d4;
$custom-light: #8564e3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f23d4",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 212
  },
  "hsl": {
    "h": 244.068,
    "s": 71.66,
    "l": 48.431
  },
  "oklch": {
    "l": 0.43001,
    "c": 0.24845,
    "h": 271.7
  },
  "luminance": 0.0656
}

Semantic roles & 50–950 ramp

primary
#2F23D4
secondary
#CFD47E
accent
#EE39E2
background
#F9F6FE
surface
#F1EBFC
border
#CBC6D5
text
#0D0616
muted
#7E7A84

Preview Lab

Preview with #2F23D4

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

Preview Lab → · Contrast checker → · Palette generator →

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