#2B3A8E#2B3A8E

#2B3A8E is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.9% C 0.140 H 270.8°. Best body text is #FFFFFF at 10.01:1 contrast (WCAG AA passes).

Color values

HEX#2B3A8E
RGBrgb(43, 58, 142)
HSLhsl(231, 54%, 36%)
HSVhsv(231, 70%, 56%)
CMYKcmyk(69.7%, 59.2%, 0%, 44.3%)
CIE-LABlab(28.09, 23.35, -48.46)
CIE-LCHlch(28.09, 53.80, 295.73°)
OKLaboklab(38.91% 0.0019 -0.1396)
OKLCHoklch(38.91% 0.14 270.8)
XYZxyz(7.3901, 5.4920, 26.2565)
Luminance0.0549 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B3A8E #8E7F2B
analogous
#2B6C8E #2B3A8E #4E2B8E
triadic
#2B3A8E #8E2B3A #3A8E2B
tetradic
#2B3A8E #8E2B6C #8E7F2B #2B8E4E
square
#2B3A8E #8E2B6C #8E7F2B #2B8E4E
split-complementary
#2B3A8E #8E4E2B #6C8E2B
monochromatic
#0F1430 #1D275F #2B3A8E #394DBD #6374D0

Accessibility & contrast

On white

10.01
#2B3A8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#2B3A8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B3A8E
10.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B3A8E#FFFFFF#000000##FFFFFF
##2B3A8E1.0010.012.1010.01
#FFFFFF10.011.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004791
Deuteranopia (green-blind)
#003E8C
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #2b3a8e;
/* rgb */ color: rgb(43, 58, 142);
/* oklch */ color: oklch(38.9% 0.140 270.8);
Tailwind
colors: {
  custom: {
    50: '#7170b0',
    500: '#2b3a8e',
    950: '#000000',
  },
}
SCSS
$custom: #2b3a8e;
$custom-light: #7170b0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b3a8e",
  "rgb": {
    "r": 43,
    "g": 58,
    "b": 142
  },
  "hsl": {
    "h": 230.909,
    "s": 53.514,
    "l": 36.275
  },
  "oklch": {
    "l": 0.38913,
    "c": 0.13961,
    "h": 270.8
  },
  "luminance": 0.05493
}

Semantic roles & 50–950 ramp

primary
#2B3A8E
secondary
#B6A95F
accent
#C74BDD
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F

Preview Lab

Preview with #2B3A8E

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

Preview Lab → · Contrast checker → · Palette generator →

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