#2B338E#2B338E

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

Color values

HEX#2B338E
RGBrgb(43, 51, 142)
HSLhsl(235, 54%, 36%)
HSVhsv(235, 70%, 56%)
CMYKcmyk(69.7%, 64.1%, 0%, 44.3%)
CIE-LABlab(26.26, 28.05, -51.46)
CIE-LCHlch(26.26, 58.61, 298.60°)
OKLaboklab(37.55% 0.0078 -0.1485)
OKLCHoklch(37.55% 0.149 273)
XYZxyz(7.0609, 4.8336, 26.1468)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B338E #8E862B
analogous
#2B658E #2B338E #552B8E
triadic
#2B338E #8E2B33 #338E2B
tetradic
#2B338E #8E2B65 #8E862B #2B8E55
square
#2B338E #8E2B65 #8E862B #2B8E55
split-complementary
#2B338E #8E552B #658E2B
monochromatic
#0F1130 #1D225F #2B338E #3944BD #636CD0

Accessibility & contrast

On white

10.68
#2B338E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B338E
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B338E#FFFFFF#000000##FFFFFF
##2B338E1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#003A8C
Tritanopia (blue-blind)
#004A5B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #2b338e;
/* rgb */ color: rgb(43, 51, 142);
/* oklch */ color: oklch(37.6% 0.149 273.0);
Tailwind
colors: {
  custom: {
    50: '#726ab0',
    500: '#2b338e',
    950: '#000000',
  },
}
SCSS
$custom: #2b338e;
$custom-light: #726ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b338e",
  "rgb": {
    "r": 43,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 235.152,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37553,
    "c": 0.14866,
    "h": 273
  },
  "luminance": 0.04834
}

Semantic roles & 50–950 ramp

primary
#2B338E
secondary
#B6AF5F
accent
#D14BDD
background
#F7F6FA
surface
#EDEBF5
border
#C8C6CF
text
#090611
muted
#7B7A80

Preview Lab

Preview with #2B338E

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

Preview Lab → · Contrast checker → · Palette generator →

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