#2B38A5#2B38A5

#2B38A5 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.6% C 0.174 H 270.9°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#2B38A5
RGBrgb(43, 56, 165)
HSLhsl(234, 59%, 41%)
HSVhsv(234, 74%, 65%)
CMYKcmyk(73.9%, 66.1%, 0%, 35.3%)
CIE-LABlab(29.56, 33.20, -60.10)
CIE-LCHlch(29.56, 68.66, 298.92°)
OKLaboklab(40.61% 0.0028 -0.1737)
OKLCHoklch(40.61% 0.174 270.9)
XYZxyz(9.1997, 6.0576, 36.2744)
Luminance0.0606 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B38A5 #A5982B
analogous
#2B75A5 #2B38A5 #5B2BA5
triadic
#2B38A5 #A52B38 #38A52B
tetradic
#2B38A5 #A52B75 #A5982B #2BA55B
square
#2B38A5 #A52B75 #A5982B #2BA55B
split-complementary
#2B38A5 #A55B2B #75A52B
monochromatic
#121744 #1E2874 #2B38A5 #404FCD #717CDA

Accessibility & contrast

On white

9.49
#2B38A5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#2B38A5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B38A5
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B38A5#FFFFFF#000000##FFFFFF
##2B38A51.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA8
Deuteranopia (green-blind)
#0040A3
Tritanopia (blue-blind)
#005569
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #2b38a5;
/* rgb */ color: rgb(43, 56, 165);
/* oklch */ color: oklch(40.6% 0.174 270.9);
Tailwind
colors: {
  custom: {
    50: '#776ec1',
    500: '#2b38a5',
    950: '#000000',
  },
}
SCSS
$custom: #2b38a5;
$custom-light: #776ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b38a5",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 165
  },
  "hsl": {
    "h": 233.607,
    "s": 58.654,
    "l": 40.784
  },
  "oklch": {
    "l": 0.40608,
    "c": 0.17377,
    "h": 270.9
  },
  "luminance": 0.06059
}

Semantic roles & 50–950 ramp

primary
#2B38A5
secondary
#C1B86B
accent
#D146E2
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0712
muted
#7C7A81

Preview Lab

Preview with #2B38A5

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

Preview Lab → · Contrast checker → · Palette generator →

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