#2F23A5#2F23A5

#2F23A5 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.6% C 0.195 H 275.7°. Best body text is #FFFFFF at 11.03:1 contrast (WCAG AA passes).

Color values

HEX#2F23A5
RGBrgb(47, 35, 165)
HSLhsl(246, 65%, 39%)
HSVhsv(246, 79%, 65%)
CMYKcmyk(71.5%, 78.8%, 0%, 35.3%)
CIE-LABlab(25.33, 46.01, -67.06)
CIE-LCHlch(25.33, 81.32, 304.45°)
OKLaboklab(37.65% 0.0193 -0.1939)
OKLCHoklch(37.65% 0.195 275.7)
XYZxyz(8.5626, 4.5222, 36.0116)
Luminance0.0452 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F23A5 #99A523
analogous
#2358A5 #2F23A5 #7023A5
triadic
#2F23A5 #A52F23 #23A52F
tetradic
#2F23A5 #A52358 #99A523 #23A570
square
#2F23A5 #A52358 #99A523 #23A570
split-complementary
#2F23A5 #A57023 #58A523
monochromatic
#120E40 #211873 #2F23A5 #4132D3 #6F64DE

Accessibility & contrast

On white

11.03
#2F23A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#2F23A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F23A5
11.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F23A5#FFFFFF#000000##FFFFFF
##2F23A51.0011.031.9011.03
#FFFFFF11.031.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A9
Deuteranopia (green-blind)
#0036A3
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2f23a5;
/* rgb */ color: rgb(47, 35, 165);
/* oklch */ color: oklch(37.6% 0.195 275.7);
Tailwind
colors: {
  custom: {
    50: '#7a61c1',
    500: '#2f23a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f23a5;
$custom-light: #7a61c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f23a5",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 165
  },
  "hsl": {
    "h": 245.538,
    "s": 65,
    "l": 39.216
  },
  "oklch": {
    "l": 0.37646,
    "c": 0.19482,
    "h": 275.7
  },
  "luminance": 0.04523
}

Semantic roles & 50–950 ramp

primary
#2F23A5
secondary
#BAC460
accent
#E840D8
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F23A5

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

Preview Lab → · Contrast checker → · Palette generator →

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