#2B338F#2B338F

#2B338F is a dark, vivid blue. Relative luminance 0.049; OKLCH L 37.6% C 0.150 H 273.0°. Best body text is #FFFFFF at 10.64:1 contrast (WCAG AA passes).

Color values

HEX#2B338F
RGBrgb(43, 51, 143)
HSLhsl(235, 54%, 36%)
HSVhsv(235, 70%, 56%)
CMYKcmyk(69.9%, 64.3%, 0%, 43.9%)
CIE-LABlab(26.34, 28.42, -51.93)
CIE-LCHlch(26.34, 59.20, 298.69°)
OKLaboklab(37.64% 0.0078 -0.1499)
OKLCHoklch(37.64% 0.15 273)
XYZxyz(7.1364, 4.8637, 26.5440)
Luminance0.0486 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B338F #8F872B
analogous
#2B658F #2B338F #552B8F
triadic
#2B338F #8F2B33 #338F2B
tetradic
#2B338F #8F2B65 #8F872B #2B8F55
square
#2B338F #8F2B65 #8F872B #2B8F55
split-complementary
#2B338F #8F552B #658F2B
monochromatic
#0F1131 #1D2260 #2B338F #3944BE #646DD0

Accessibility & contrast

On white

10.64
#2B338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#2B338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B338F
10.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B338F#FFFFFF#000000##FFFFFF
##2B338F1.0010.641.9710.64
#FFFFFF10.641.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004392
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#004B5C
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b338f;
/* rgb */ color: rgb(43, 51, 143);
/* oklch */ color: oklch(37.6% 0.150 273.0);
Tailwind
colors: {
  custom: {
    50: '#726ab1',
    500: '#2b338f',
    950: '#000000',
  },
}
SCSS
$custom: #2b338f;
$custom-light: #726ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b338f",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 235.2,
    "s": 53.763,
    "l": 36.471
  },
  "oklch": {
    "l": 0.37644,
    "c": 0.15006,
    "h": 273
  },
  "luminance": 0.04864
}

Semantic roles & 50–950 ramp

primary
#2B338F
secondary
#B7B05F
accent
#D14BDD
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2B338F

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

Preview Lab → · Contrast checker → · Palette generator →

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