#2B318F#2B318F

#2B318F is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.3% C 0.153 H 273.5°. Best body text is #FFFFFF at 10.83:1 contrast (WCAG AA passes).

Color values

HEX#2B318F
RGBrgb(43, 49, 143)
HSLhsl(236, 54%, 36%)
HSVhsv(236, 70%, 56%)
CMYKcmyk(69.9%, 65.7%, 0%, 43.9%)
CIE-LABlab(25.84, 29.74, -52.76)
CIE-LCHlch(25.84, 60.56, 299.41°)
OKLaboklab(37.28% 0.0093 -0.1523)
OKLCHoklch(37.28% 0.153 273.5)
XYZxyz(7.0508, 4.6927, 26.5155)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B318F #8F892B
analogous
#2B638F #2B318F #572B8F
triadic
#2B318F #8F2B31 #318F2B
tetradic
#2B318F #8F2B63 #8F892B #2B8F57
square
#2B318F #8F2B63 #8F892B #2B8F57
split-complementary
#2B318F #8F572B #638F2B
monochromatic
#0F1131 #1D2160 #2B318F #3941BE #646BD0

Accessibility & contrast

On white

10.83
#2B318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#2B318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B318F
10.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B318F#FFFFFF#000000##FFFFFF
##2B318F1.0010.831.9410.83
#FFFFFF10.831.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b318f;
/* rgb */ color: rgb(43, 49, 143);
/* oklch */ color: oklch(37.3% 0.153 273.5);
Tailwind
colors: {
  custom: {
    50: '#7269b1',
    500: '#2b318f',
    950: '#000000',
  },
}
SCSS
$custom: #2b318f;
$custom-light: #7269b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b318f",
  "rgb": {
    "r": 43,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 236.4,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37276,
    "c": 0.15256,
    "h": 273.5
  },
  "luminance": 0.04693
}

Semantic roles & 50–950 ramp

primary
#2B318F
secondary
#B7B15F
accent
#D44BDD
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2B318F

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

Preview Lab → · Contrast checker → · Palette generator →

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