#2B38AF#2B38AF

#2B38AF is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.6% C 0.187 H 270.6°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#2B38AF
RGBrgb(43, 56, 175)
HSLhsl(234, 61%, 43%)
HSVhsv(234, 75%, 69%)
CMYKcmyk(75.4%, 68%, 0%, 31.4%)
CIE-LABlab(30.49, 36.81, -64.57)
CIE-LCHlch(30.49, 74.33, 299.68°)
OKLaboklab(41.57% 0.002 -0.1868)
OKLCHoklch(41.57% 0.187 270.6)
XYZxyz(10.1457, 6.4360, 41.2567)
Luminance0.0644 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B38AF #AFA22B
analogous
#2B7AAF #2B38AF #602BAF
triadic
#2B38AF #AF2B38 #38AF2B
tetradic
#2B38AF #AF2B7A #AFA22B #2BAF60
square
#2B38AF #AF2B7A #AFA22B #2BAF60
split-complementary
#2B38AF #AF602B #7AAF2B
monochromatic
#13194D #1F287E #2B38AF #4653D1 #7781DE

Accessibility & contrast

On white

9.18
#2B38AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#2B38AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B38AF
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B38AF#FFFFFF#000000##FFFFFF
##2B38AF1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB3
Deuteranopia (green-blind)
#0042AD
Tritanopia (blue-blind)
#00586F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #2b38af;
/* rgb */ color: rgb(43, 56, 175);
/* oklch */ color: oklch(41.6% 0.187 270.6);
Tailwind
colors: {
  custom: {
    50: '#796fc8',
    500: '#2b38af',
    950: '#000000',
  },
}
SCSS
$custom: #2b38af;
$custom-light: #796fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b38af",
  "rgb": {
    "r": 43,
    "g": 56,
    "b": 175
  },
  "hsl": {
    "h": 234.091,
    "s": 60.55,
    "l": 42.745
  },
  "oklch": {
    "l": 0.41569,
    "c": 0.18684,
    "h": 270.6
  },
  "luminance": 0.06437
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B38AF

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

Preview Lab → · Contrast checker → · Palette generator →

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