#2B318D#2B318D

#2B318D is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.1% C 0.150 H 273.6°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#2B318D
RGBrgb(43, 49, 141)
HSLhsl(236, 53%, 36%)
HSVhsv(236, 70%, 55%)
CMYKcmyk(69.5%, 65.2%, 0%, 44.7%)
CIE-LABlab(25.66, 29.01, -51.81)
CIE-LCHlch(25.66, 59.38, 299.25°)
OKLaboklab(37.09% 0.0095 -0.1495)
OKLCHoklch(37.09% 0.15 273.6)
XYZxyz(6.9007, 4.6327, 25.7247)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B318D #8D872B
analogous
#2B628D #2B318D #562B8D
triadic
#2B318D #8D2B31 #318D2B
tetradic
#2B318D #8D2B62 #8D872B #2B8D56
square
#2B318D #8D2B62 #8D872B #2B8D56
split-complementary
#2B318D #8D562B #628D2B
monochromatic
#0E102F #1D215E #2B318D #3941BC #636ACF

Accessibility & contrast

On white

10.90
#2B318D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#2B318D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B318D
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B318D#FFFFFF#000000##FFFFFF
##2B318D1.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004190
Deuteranopia (green-blind)
#00388B
Tritanopia (blue-blind)
#00495A
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b318d;
/* rgb */ color: rgb(43, 49, 141);
/* oklch */ color: oklch(37.1% 0.150 273.6);
Tailwind
colors: {
  custom: {
    50: '#7269af',
    500: '#2b318d',
    950: '#000000',
  },
}
SCSS
$custom: #2b318d;
$custom-light: #7269af;
$custom-dark: #000000;
JSON
{
  "hex": "#2b318d",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 141
  },
  "hsl": {
    "h": 236.327,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37089,
    "c": 0.14981,
    "h": 273.6
  },
  "luminance": 0.04633
}

Semantic roles & 50–950 ramp

primary
#2B318D
secondary
#B6B05E
accent
#D44BDD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090610
muted
#7B7A7F

Preview Lab

Preview with #2B318D

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

Preview Lab → · Contrast checker → · Palette generator →

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