#2F23A9#2F23A9

#2F23A9 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 38.1% C 0.200 H 275.2°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#2F23A9
RGBrgb(47, 35, 169)
HSLhsl(245, 66%, 40%)
HSVhsv(245, 79%, 66%)
CMYKcmyk(72.2%, 79.3%, 0%, 33.7%)
CIE-LABlab(25.77, 47.27, -68.74)
CIE-LCHlch(25.77, 83.42, 304.51°)
OKLaboklab(38.09% 0.0183 -0.1988)
OKLCHoklch(38.09% 0.2 275.2)
XYZxyz(8.9324, 4.6701, 37.9591)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F23A9 #9DA923
analogous
#235AA9 #2F23A9 #7223A9
triadic
#2F23A9 #A92F23 #23A92F
tetradic
#2F23A9 #A9235A #9DA923 #23A972
square
#2F23A9 #A9235A #9DA923 #23A972
split-complementary
#2F23A9 #A97223 #5AA923
monochromatic
#130E44 #211976 #2F23A9 #4334D5 #7267DF

Accessibility & contrast

On white

10.86
#2F23A9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F23A9
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F23A9#FFFFFF#000000##FFFFFF
##2F23A91.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043AD
Deuteranopia (green-blind)
#0037A7
Tritanopia (blue-blind)
#004C66
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2f23a9;
/* rgb */ color: rgb(47, 35, 169);
/* oklch */ color: oklch(38.1% 0.200 275.2);
Tailwind
colors: {
  custom: {
    50: '#7b61c4',
    500: '#2f23a9',
    950: '#000000',
  },
}
SCSS
$custom: #2f23a9;
$custom-light: #7b61c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f23a9",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 169
  },
  "hsl": {
    "h": 245.373,
    "s": 65.686,
    "l": 40
  },
  "oklch": {
    "l": 0.38088,
    "c": 0.1996,
    "h": 275.2
  },
  "luminance": 0.04671
}

Semantic roles & 50–950 ramp

primary
#2F23A9
secondary
#BCC563
accent
#E93FD9
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2F23A9

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

Preview Lab → · Contrast checker → · Palette generator →

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