#2F23A8#2F23A8

#2F23A8 is a dark, vivid blue. Relative luminance 0.046; OKLCH L 38.0% C 0.198 H 275.4°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2F23A8
RGBrgb(47, 35, 168)
HSLhsl(245, 66%, 40%)
HSVhsv(245, 79%, 66%)
CMYKcmyk(72%, 79.2%, 0%, 34.1%)
CIE-LABlab(25.66, 46.95, -68.32)
CIE-LCHlch(25.66, 82.90, 304.50°)
OKLaboklab(37.98% 0.0185 -0.1975)
OKLCHoklch(37.98% 0.198 275.4)
XYZxyz(8.8389, 4.6327, 37.4666)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F23A8 #9CA823
analogous
#2359A8 #2F23A8 #7223A8
triadic
#2F23A8 #A82F23 #23A82F
tetradic
#2F23A8 #A82359 #9CA823 #23A872
square
#2F23A8 #A82359 #9CA823 #23A872
split-complementary
#2F23A8 #A87223 #59A823
monochromatic
#130E43 #211875 #2F23A8 #4234D5 #7166DF

Accessibility & contrast

On white

10.90
#2F23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2F23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F23A8
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F23A8#FFFFFF#000000##FFFFFF
##2F23A81.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004B65
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f23a8;
/* rgb */ color: rgb(47, 35, 168);
/* oklch */ color: oklch(38.0% 0.198 275.4);
Tailwind
colors: {
  custom: {
    50: '#7b61c3',
    500: '#2f23a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f23a8;
$custom-light: #7b61c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f23a8",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 245.414,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37977,
    "c": 0.1984,
    "h": 275.4
  },
  "luminance": 0.04634
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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