#2B238F#2B238F

#2B238F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.0% C 0.169 H 276.4°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#2B238F
RGBrgb(43, 35, 143)
HSLhsl(244, 61%, 35%)
HSVhsv(244, 76%, 56%)
CMYKcmyk(69.9%, 75.5%, 0%, 43.9%)
CIE-LABlab(22.65, 38.45, -58.00)
CIE-LCHlch(22.65, 69.59, 303.54°)
OKLaboklab(34.98% 0.0189 -0.1676)
OKLCHoklch(34.98% 0.169 276.4)
XYZxyz(6.5536, 3.6982, 26.3497)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B238F #878F23
analogous
#23518F #2B238F #61238F
triadic
#2B238F #8F2B23 #238F2B
tetradic
#2B238F #8F2351 #878F23 #238F61
square
#2B238F #8F2351 #878F23 #238F61
split-complementary
#2B238F #8F6123 #518F23
monochromatic
#0D0B2D #1C175E #2B238F #3A2FC0 #6057D6

Accessibility & contrast

On white

12.07
#2B238F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#2B238F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B238F
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B238F#FFFFFF#000000##FFFFFF
##2B238F1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004257
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #2b238f;
/* rgb */ color: rgb(43, 35, 143);
/* oklch */ color: oklch(35.0% 0.169 276.4);
Tailwind
colors: {
  custom: {
    50: '#7460b1',
    500: '#2b238f',
    950: '#000000',
  },
}
SCSS
$custom: #2b238f;
$custom-light: #7460b1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b238f",
  "rgb": {
    "r": 43,
    "g": 35,
    "b": 143
  },
  "hsl": {
    "h": 244.444,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34976,
    "c": 0.16868,
    "h": 276.4
  },
  "luminance": 0.03699
}

Semantic roles & 50–950 ramp

primary
#2B238F
secondary
#B2BA54
accent
#E444D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #2B238F

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

Preview Lab → · Contrast checker → · Palette generator →

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