#232797#232797

#232797 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.9% C 0.177 H 271.7°. Best body text is #FFFFFF at 11.61:1 contrast (WCAG AA passes).

Color values

HEX#232797
RGBrgb(35, 39, 151)
HSLhsl(238, 62%, 36%)
HSVhsv(238, 77%, 59%)
CMYKcmyk(76.8%, 74.2%, 0%, 40.8%)
CIE-LABlab(23.81, 38.02, -61.04)
CIE-LCHlch(23.81, 71.91, 301.91°)
OKLaboklab(35.92% 0.0052 -0.1767)
OKLCHoklch(35.92% 0.177 271.7)
XYZxyz(7.0027, 4.0420, 29.6833)
Luminance0.0404 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#232797 #979323
analogous
#236197 #232797 #592397
triadic
#232797 #972327 #279723
tetradic
#232797 #972361 #979323 #239759
square
#232797 #972361 #979323 #239759
split-complementary
#232797 #975923 #619723
monochromatic
#0C0D34 #171A65 #232797 #2F34C9 #5B60D9

Accessibility & contrast

On white

11.61
#232797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#232797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #232797
11.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##232797#FFFFFF#000000##FFFFFF
##2327971.0011.611.8111.61
#FFFFFF11.611.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9A
Deuteranopia (green-blind)
#003395
Tritanopia (blue-blind)
#00475C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #232797;
/* rgb */ color: rgb(35, 39, 151);
/* oklch */ color: oklch(35.9% 0.177 271.7);
Tailwind
colors: {
  custom: {
    50: '#7262b7',
    500: '#232797',
    950: '#000000',
  },
}
SCSS
$custom: #232797;
$custom-light: #7262b7;
$custom-dark: #000000;
JSON
{
  "hex": "#232797",
  "rgb": {
    "r": 35,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 237.931,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35916,
    "c": 0.17678,
    "h": 271.7
  },
  "luminance": 0.04043
}

Semantic roles & 50–950 ramp

primary
#232797
secondary
#BEBA58
accent
#E042E5
background
#F7F5FB
surface
#EEEAF6
border
#C9C6D0
text
#090511
muted
#7B7980

Preview Lab

Preview with #232797

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

Preview Lab → · Contrast checker → · Palette generator →

#232797 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva