#2B38B0#2B38B0

#2B38B0 is a dark, vivid blue. Relative luminance 0.065; OKLCH L 41.7% C 0.188 H 270.6°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#2B38B0
RGBrgb(43, 56, 176)
HSLhsl(234, 61%, 43%)
HSVhsv(234, 76%, 69%)
CMYKcmyk(75.6%, 68.2%, 0%, 31%)
CIE-LABlab(30.58, 37.17, -65.02)
CIE-LCHlch(30.58, 74.89, 299.75°)
OKLaboklab(41.67% 0.0019 -0.1881)
OKLCHoklch(41.67% 0.188 270.6)
XYZxyz(10.2442, 6.4754, 41.7759)
Luminance0.0648 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B38B0 #B0A32B
analogous
#2B7BB0 #2B38B0 #602BB0
triadic
#2B38B0 #B02B38 #38B02B
tetradic
#2B38B0 #B02B7B #B0A32B #2BB060
square
#2B38B0 #B02B7B #B0A32B #2BB060
split-complementary
#2B38B0 #B0602B #7BB02B
monochromatic
#13194E #1F287F #2B38B0 #4654D2 #7882DE

Accessibility & contrast

On white

9.15
#2B38B0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#2B38B0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B38B0
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B38B0#FFFFFF#000000##FFFFFF
##2B38B01.009.152.309.15
#FFFFFF9.151.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB4
Deuteranopia (green-blind)
#0042AE
Tritanopia (blue-blind)
#00596F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2b38b0;
/* rgb */ color: rgb(43, 56, 176);
/* oklch */ color: oklch(41.7% 0.188 270.6);
Tailwind
colors: {
  custom: {
    50: '#7a6fc9',
    500: '#2b38b0',
    950: '#000000',
  },
}
SCSS
$custom: #2b38b0;
$custom-light: #7a6fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2b38b0",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 176
  },
  "hsl": {
    "h": 234.135,
    "s": 60.731,
    "l": 42.941
  },
  "oklch": {
    "l": 0.41666,
    "c": 0.18813,
    "h": 270.6
  },
  "luminance": 0.06477
}

Semantic roles & 50–950 ramp

primary
#2B38B0
secondary
#C6BD71
accent
#D444E4
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82

Preview Lab

Preview with #2B38B0

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

Preview Lab → · Contrast checker → · Palette generator →

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