#2238BD#2238BD

#2238BD is a dark, highly saturated blue. Relative luminance 0.068; OKLCH L 42.6% C 0.207 H 267.9°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#2238BD
RGBrgb(34, 56, 189)
HSLhsl(231, 70%, 44%)
HSVhsv(231, 82%, 74%)
CMYKcmyk(82%, 70.4%, 0%, 25.9%)
CIE-LABlab(31.44, 41.04, -71.32)
CIE-LCHlch(31.44, 82.29, 299.92°)
OKLaboklab(42.56% -0.0077 -0.2067)
OKLCHoklch(42.56% 0.207 267.9)
XYZxyz(11.2560, 6.8412, 48.8615)
Luminance0.0684 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2238BD #BDA722
analogous
#2285BD #2238BD #5922BD
triadic
#2238BD #BD2238 #38BD22
tetradic
#2238BD #BD2285 #BDA722 #22BD59
square
#2238BD #BD2285 #BDA722 #22BD59
split-complementary
#2238BD #BD5922 #85BD22
monochromatic
#0F1955 #192989 #2238BD #4056DD #7384E6

Accessibility & contrast

On white

8.87
#2238BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#2238BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2238BD
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2238BD#FFFFFF#000000##FFFFFF
##2238BD1.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052C1
Deuteranopia (green-blind)
#0042BB
Tritanopia (blue-blind)
#005D76
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #2238bd;
/* rgb */ color: rgb(34, 56, 189);
/* oklch */ color: oklch(42.6% 0.207 267.9);
Tailwind
colors: {
  custom: {
    50: '#7a6fd2',
    500: '#2238bd',
    950: '#000000',
  },
}
SCSS
$custom: #2238bd;
$custom-light: #7a6fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#2238bd",
  "rgb": {
    "r": 34,
    "g": 56,
    "b": 189
  },
  "hsl": {
    "h": 231.484,
    "s": 69.507,
    "l": 43.725
  },
  "oklch": {
    "l": 0.4256,
    "c": 0.20683,
    "h": 267.9
  },
  "luminance": 0.06843
}

Semantic roles & 50–950 ramp

primary
#2238BD
secondary
#CDBF6E
accent
#D33BEC
background
#F8F6FD
surface
#EFECFA
border
#CAC7D3
text
#0B0714
muted
#7C7A83

Preview Lab

Preview with #2238BD

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

Preview Lab → · Contrast checker → · Palette generator →

#2238BD Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva