#2F23A0#2F23A0

#2F23A0 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 37.1% C 0.189 H 276.2°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).

Color values

HEX#2F23A0
RGBrgb(47, 35, 160)
HSLhsl(246, 64%, 38%)
HSVhsv(246, 78%, 63%)
CMYKcmyk(70.6%, 78.1%, 0%, 37.3%)
CIE-LABlab(24.78, 44.42, -64.93)
CIE-LCHlch(24.78, 78.67, 304.38°)
OKLaboklab(37.1% 0.0205 -0.1877)
OKLCHoklch(37.1% 0.189 276.2)
XYZxyz(8.1164, 4.3437, 33.6616)
Luminance0.0434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F23A0 #94A023
analogous
#2355A0 #2F23A0 #6D23A0
triadic
#2F23A0 #A02F23 #23A02F
tetradic
#2F23A0 #A02355 #94A023 #23A06D
square
#2F23A0 #A02355 #94A023 #23A06D
split-complementary
#2F23A0 #A06D23 #55A023
monochromatic
#110D3C #20186E #2F23A0 #3E2FD1 #6D61DC

Accessibility & contrast

On white

11.24
#2F23A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#2F23A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F23A0
11.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F23A0#FFFFFF#000000##FFFFFF
##2F23A01.0011.241.8711.24
#FFFFFF11.241.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A4
Deuteranopia (green-blind)
#00359E
Tritanopia (blue-blind)
#004861
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #2f23a0;
/* rgb */ color: rgb(47, 35, 160);
/* oklch */ color: oklch(37.1% 0.189 276.2);
Tailwind
colors: {
  custom: {
    50: '#7961bd',
    500: '#2f23a0',
    950: '#000000',
  },
}
SCSS
$custom: #2f23a0;
$custom-light: #7961bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f23a0",
  "rgb": {
    "r": 47,
    "g": 35,
    "b": 160
  },
  "hsl": {
    "h": 245.76,
    "s": 64.103,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37097,
    "c": 0.18881,
    "h": 276.2
  },
  "luminance": 0.04344
}

Semantic roles & 50–950 ramp

primary
#2F23A0
secondary
#B8C15D
accent
#E741D7
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #2F23A0

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

Preview Lab → · Contrast checker → · Palette generator →

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