#2B319F#2B319F

#2B319F is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.174 H 272.6°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#2B319F
RGBrgb(43, 49, 159)
HSLhsl(237, 57%, 40%)
HSVhsv(237, 73%, 62%)
CMYKcmyk(73%, 69.2%, 0%, 37.6%)
CIE-LABlab(27.33, 35.50, -60.12)
CIE-LCHlch(27.33, 69.82, 300.56°)
OKLaboklab(38.82% 0.0078 -0.1738)
OKLCHoklch(38.82% 0.174 272.6)
XYZxyz(8.3505, 5.2126, 33.3602)
Luminance0.0521 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B319F #9F992B
analogous
#2B6B9F #2B319F #5F2B9F
triadic
#2B319F #9F2B31 #319F2B
tetradic
#2B319F #9F2B6B #9F992B #2B9F5F
square
#2B319F #9F2B6B #9F992B #2B9F5F
split-complementary
#2B319F #9F5F2B #6B9F2B
monochromatic
#11133F #1E226F #2B319F #3D44CA #6D72D7

Accessibility & contrast

On white

10.28
#2B319F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#2B319F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B319F
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B319F#FFFFFF#000000##FFFFFF
##2B319F1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#003B9D
Tritanopia (blue-blind)
#004F64
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #2b319f;
/* rgb */ color: rgb(43, 49, 159);
/* oklch */ color: oklch(38.8% 0.174 272.6);
Tailwind
colors: {
  custom: {
    50: '#7669bc',
    500: '#2b319f',
    950: '#000000',
  },
}
SCSS
$custom: #2b319f;
$custom-light: #7669bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b319f",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 159
  },
  "hsl": {
    "h": 236.897,
    "s": 57.426,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38818,
    "c": 0.174,
    "h": 272.6
  },
  "luminance": 0.05213
}

Semantic roles & 50–950 ramp

primary
#2B319F
secondary
#BEBA67
accent
#D947E1
background
#F7F6FB
surface
#EEEBF7
border
#C9C6D0
text
#0A0612
muted
#7C7A81

Preview Lab

Preview with #2B319F

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

Preview Lab → · Contrast checker → · Palette generator →

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