#2B23A8#2B23A8

#2B23A8 is a dark, vivid blue. Relative luminance 0.045; OKLCH L 37.7% C 0.199 H 273.8°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#2B23A8
RGBrgb(43, 35, 168)
HSLhsl(244, 66%, 40%)
HSVhsv(244, 79%, 66%)
CMYKcmyk(74.4%, 79.2%, 0%, 34.1%)
CIE-LABlab(25.39, 46.62, -68.78)
CIE-LCHlch(25.39, 83.09, 304.13°)
OKLaboklab(37.71% 0.0133 -0.199)
OKLCHoklch(37.71% 0.199 273.8)
XYZxyz(8.6628, 4.5419, 37.4583)
Luminance0.0454 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B23A8 #A0A823
analogous
#235EA8 #2B23A8 #6E23A8
triadic
#2B23A8 #A82B23 #23A82B
tetradic
#2B23A8 #A8235E #A0A823 #23A86E
square
#2B23A8 #A8235E #A0A823 #23A86E
split-complementary
#2B23A8 #A86E23 #5EA823
monochromatic
#110E43 #1E1875 #2B23A8 #3D34D5 #6E66DF

Accessibility & contrast

On white

11.00
#2B23A8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#2B23A8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B23A8
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B23A8#FFFFFF#000000##FFFFFF
##2B23A81.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004C65
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #2b23a8;
/* rgb */ color: rgb(43, 35, 168);
/* oklch */ color: oklch(37.7% 0.199 273.8);
Tailwind
colors: {
  custom: {
    50: '#7a61c3',
    500: '#2b23a8',
    950: '#000000',
  },
}
SCSS
$custom: #2b23a8;
$custom-light: #7a61c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b23a8",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 168
  },
  "hsl": {
    "h": 243.609,
    "s": 65.517,
    "l": 39.804
  },
  "oklch": {
    "l": 0.37714,
    "c": 0.19941,
    "h": 273.8
  },
  "luminance": 0.04543
}

Semantic roles & 50–950 ramp

primary
#2B23A8
secondary
#BFC562
accent
#E83FDE
background
#F8F5FC
surface
#EFEAF8
border
#CAC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #2B23A8

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

Preview Lab → · Contrast checker → · Palette generator →

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