#2B318E#2B318E

#2B318E is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.2% C 0.151 H 273.6°. Best body text is #FFFFFF at 10.87:1 contrast (WCAG AA passes).

Color values

HEX#2B318E
RGBrgb(43, 49, 142)
HSLhsl(236, 54%, 36%)
HSVhsv(236, 70%, 56%)
CMYKcmyk(69.7%, 65.5%, 0%, 44.3%)
CIE-LABlab(25.75, 29.38, -52.28)
CIE-LCHlch(25.75, 59.97, 299.33°)
OKLaboklab(37.18% 0.0094 -0.1509)
OKLCHoklch(37.18% 0.151 273.6)
XYZxyz(6.9754, 4.6626, 26.1183)
Luminance0.0466 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B318E #8E882B
analogous
#2B638E #2B318E #572B8E
triadic
#2B318E #8E2B31 #318E2B
tetradic
#2B318E #8E2B63 #8E882B #2B8E57
square
#2B318E #8E2B63 #8E882B #2B8E57
split-complementary
#2B318E #8E572B #638E2B
monochromatic
#0F1130 #1D215F #2B318E #3941BD #636AD0

Accessibility & contrast

On white

10.87
#2B318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B318E
10.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B318E#FFFFFF#000000##FFFFFF
##2B318E1.0010.871.9310.87
#FFFFFF10.871.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004291
Deuteranopia (green-blind)
#00398C
Tritanopia (blue-blind)
#00495B
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #2b318e;
/* rgb */ color: rgb(43, 49, 142);
/* oklch */ color: oklch(37.2% 0.151 273.6);
Tailwind
colors: {
  custom: {
    50: '#7269b0',
    500: '#2b318e',
    950: '#000000',
  },
}
SCSS
$custom: #2b318e;
$custom-light: #7269b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b318e",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 236.364,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37183,
    "c": 0.15119,
    "h": 273.6
  },
  "luminance": 0.04663
}

Semantic roles & 50–950 ramp

primary
#2B318E
secondary
#B6B15F
accent
#D44BDD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2B318E

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

Preview Lab → · Contrast checker → · Palette generator →

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