#2338B1#2338B1

#2338B1 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.4% C 0.192 H 268.3°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#2338B1
RGBrgb(35, 56, 177)
HSLhsl(231, 67%, 42%)
HSVhsv(231, 80%, 69%)
CMYKcmyk(80.2%, 68.4%, 0%, 30.6%)
CIE-LABlab(30.30, 36.79, -66.09)
CIE-LCHlch(30.30, 75.64, 299.10°)
OKLaboklab(41.39% -0.0058 -0.1914)
OKLCHoklch(41.39% 0.192 268.3)
XYZxyz(10.0404, 6.3588, 42.2847)
Luminance0.0636 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2338B1 #B19C23
analogous
#237FB1 #2338B1 #5523B1
triadic
#2338B1 #B12338 #38B123
tetradic
#2338B1 #B1237F #B19C23 #23B155
square
#2338B1 #B1237F #B19C23 #23B155
split-complementary
#2338B1 #B15523 #7FB123
monochromatic
#0F184B #19287E #2338B1 #3951D8 #6C7EE2

Accessibility & contrast

On white

9.24
#2338B1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#2338B1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2338B1
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2338B1#FFFFFF#000000##FFFFFF
##2338B11.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004EB5
Deuteranopia (green-blind)
#0041AF
Tritanopia (blue-blind)
#005970
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #2338b1;
/* rgb */ color: rgb(35, 56, 177);
/* oklch */ color: oklch(41.4% 0.192 268.3);
Tailwind
colors: {
  custom: {
    50: '#776fc9',
    500: '#2338b1',
    950: '#000000',
  },
}
SCSS
$custom: #2338b1;
$custom-light: #776fc9;
$custom-dark: #000000;
JSON
{
  "hex": "#2338b1",
  "rgb": {
    "r": 35,
    "g": 56,
    "b": 177
  },
  "hsl": {
    "h": 231.127,
    "s": 66.981,
    "l": 41.569
  },
  "oklch": {
    "l": 0.41388,
    "c": 0.1915,
    "h": 268.3
  },
  "luminance": 0.0636
}

Semantic roles & 50–950 ramp

primary
#2338B1
secondary
#C8BA68
accent
#D03EEA
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0713
muted
#7C7A82

Preview Lab

Preview with #2338B1

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

Preview Lab → · Contrast checker → · Palette generator →

#2338B1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva